pub struct RemoteSettings {
pub config: RemoteSettingsConfig,
/* private fields */
}
Fields§
§config: RemoteSettingsConfig
Implementations§
Source§impl RemoteSettings
impl RemoteSettings
Sourcepub fn new(remote_settings_config: RemoteSettingsConfig) -> ApiResult<Self>
pub fn new(remote_settings_config: RemoteSettingsConfig) -> ApiResult<Self>
Construct a new Remote Settings client with the given configuration.
Sourcepub fn get_records(&self) -> ApiResult<RemoteSettingsResponse>
pub fn get_records(&self) -> ApiResult<RemoteSettingsResponse>
Fetch all records for the configuration this client was initialized with.
Sourcepub fn get_records_since(
&self,
timestamp: u64,
) -> ApiResult<RemoteSettingsResponse>
pub fn get_records_since( &self, timestamp: u64, ) -> ApiResult<RemoteSettingsResponse>
Fetch all records added to the server since the provided timestamp, using the configuration this client was initialized with.
Source§impl RemoteSettings
impl RemoteSettings
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].
Trait Implementations§
Source§impl<UT> LiftRef<UT> for RemoteSettings
impl<UT> LiftRef<UT> for RemoteSettings
type LiftType = Arc<RemoteSettings>
Source§impl<UT> LowerError<UT> for RemoteSettings
impl<UT> LowerError<UT> for RemoteSettings
Source§fn lower_error(obj: Self) -> RustBuffer
fn lower_error(obj: Self) -> RustBuffer
Lower this value for scaffolding function return Read more
Source§impl<UT> LowerReturn<UT> for RemoteSettings
impl<UT> LowerReturn<UT> for RemoteSettings
Source§type ReturnType = <Arc<RemoteSettings> as LowerReturn<UniFfiTag>>::ReturnType
type ReturnType = <Arc<RemoteSettings> as LowerReturn<UniFfiTag>>::ReturnType
The type that should be returned by scaffolding functions for this type. Read more
Source§fn lower_return(obj: Self) -> Result<Self::ReturnType, RustCallError>
fn lower_return(obj: Self) -> Result<Self::ReturnType, RustCallError>
Lower the return value from an scaffolding call Read more
§fn handle_failed_lift(
error: LiftArgsError,
) -> Result<Self::ReturnType, RustCallError>
fn handle_failed_lift( error: LiftArgsError, ) -> Result<Self::ReturnType, RustCallError>
Lower the return value for failed argument lifts Read more
Source§impl<UT> TypeId<UT> for RemoteSettings
impl<UT> TypeId<UT> for RemoteSettings
const TYPE_ID_META: MetadataBuffer
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