Struct remote_settings::RemoteSettings
source · pub struct RemoteSettings {
pub config: RemoteSettingsConfig,
/* private fields */
}
Fields§
§config: RemoteSettingsConfig
Implementations§
source§impl RemoteSettings
impl RemoteSettings
pub fn new(config: RemoteSettingsConfig) -> ApiResult<Self>
pub fn get_records(&self) -> ApiResult<RemoteSettingsResponse>
pub fn get_records_since( &self, timestamp: u64 ) -> ApiResult<RemoteSettingsResponse>
sourcepub fn get_records_raw(&self) -> ApiResult<Response>
pub fn get_records_raw(&self) -> ApiResult<Response>
Fetches all records for a collection that can be found in the server, bucket, and collection defined by the [ClientConfig] used to generate this Client. This function will return the raw viaduct [Response].
sourcepub fn get_attachment(&self, attachment_location: &str) -> ApiResult<Vec<u8>>
pub fn get_attachment(&self, attachment_location: &str) -> ApiResult<Vec<u8>>
Downloads an attachment from [attachment_location]. NOTE: there are no guarantees about a maximum size, so use care when fetching potentially large attachments.
pub fn download_attachment_to_path( &self, attachment_location: String, path: String ) -> ApiResult<()>
Auto Trait Implementations§
impl !Freeze for RemoteSettings
impl !RefUnwindSafe for RemoteSettings
impl Send for RemoteSettings
impl Sync for RemoteSettings
impl Unpin for RemoteSettings
impl UnwindSafe for RemoteSettings
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