pub struct FirebaseRemoteConfig { /* private fields */ }Expand description
Client for interacting with Firebase Remote Config.
Implementations§
Source§impl FirebaseRemoteConfig
impl FirebaseRemoteConfig
Sourcepub fn new(middleware: AuthMiddleware) -> Self
pub fn new(middleware: AuthMiddleware) -> Self
Creates a new FirebaseRemoteConfig instance.
This is typically called via FirebaseApp::remote_config().
Sourcepub async fn get(&self) -> Result<RemoteConfig, Error>
pub async fn get(&self) -> Result<RemoteConfig, Error>
Fetches the current active Remote Config template.
The returned RemoteConfig object contains an ETag which is used for optimistic locking during updates.
Sourcepub async fn publish(&self, config: RemoteConfig) -> Result<RemoteConfig, Error>
pub async fn publish(&self, config: RemoteConfig) -> Result<RemoteConfig, Error>
Publishes a new Remote Config template.
This method includes the If-Match header using the ETag present in the config object.
If the ETag does not match the server’s current version, the request will fail.
§Arguments
config- TheRemoteConfigtemplate to publish.
Sourcepub async fn list_versions(
&self,
options: Option<ListVersionsOptions>,
) -> Result<ListVersionsResult, Error>
pub async fn list_versions( &self, options: Option<ListVersionsOptions>, ) -> Result<ListVersionsResult, Error>
Lists previous versions of the Remote Config template.
§Arguments
options- Optional query parameters for pagination and filtering.
Auto Trait Implementations§
impl Freeze for FirebaseRemoteConfig
impl !RefUnwindSafe for FirebaseRemoteConfig
impl Send for FirebaseRemoteConfig
impl Sync for FirebaseRemoteConfig
impl Unpin for FirebaseRemoteConfig
impl !UnwindSafe for FirebaseRemoteConfig
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