pub struct ViaductApiClient { /* private fields */ }
Expand description
Client for Remote settings API requests
Trait Implementations§
source§impl ApiClient for ViaductApiClient
impl ApiClient for ViaductApiClient
source§fn collection_url(&self) -> String
fn collection_url(&self) -> String
Get the Bucket URL for this client. Read more
source§fn get_records(
&mut self,
timestamp: Option<u64>,
) -> Result<Vec<RemoteSettingsRecord>>
fn get_records( &mut self, timestamp: Option<u64>, ) -> Result<Vec<RemoteSettingsRecord>>
Fetch records from the server
source§fn get_attachment(&mut self, attachment_location: &str) -> Result<Vec<u8>>
fn get_attachment(&mut self, attachment_location: &str) -> Result<Vec<u8>>
Fetch an attachment from the server
source§fn is_prod_server(&self) -> Result<bool>
fn is_prod_server(&self) -> Result<bool>
Check if this client is pointing to the production server
Auto Trait Implementations§
impl Freeze for ViaductApiClient
impl RefUnwindSafe for ViaductApiClient
impl Send for ViaductApiClient
impl Sync for ViaductApiClient
impl Unpin for ViaductApiClient
impl UnwindSafe for ViaductApiClient
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
Create a new handle for an Arc value Read more
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
Clone a handle Read more
§unsafe fn consume_handle(handle: Handle) -> Arc<T>
unsafe fn consume_handle(handle: Handle) -> Arc<T>
Consume a handle, getting back the initial
Arc<>
Read more