pub struct FirebaseApp { /* private fields */ }Implementations§
Source§impl FirebaseApp
impl FirebaseApp
Sourcepub fn new(
options: FirebaseOptions,
config: FirebaseAppConfig,
container: ComponentContainer,
) -> Self
pub fn new( options: FirebaseOptions, config: FirebaseAppConfig, container: ComponentContainer, ) -> Self
Creates a new FirebaseApp from options, config, and the component container.
Sourcepub fn options(&self) -> FirebaseOptions
pub fn options(&self) -> FirebaseOptions
Provides a cloned copy of the original Firebase options.
Sourcepub fn config(&self) -> FirebaseAppConfig
pub fn config(&self) -> FirebaseAppConfig
Returns the configuration metadata associated with the app.
Sourcepub fn automatic_data_collection_enabled(&self) -> bool
pub fn automatic_data_collection_enabled(&self) -> bool
Indicates whether automatic data collection is currently enabled.
Sourcepub fn set_automatic_data_collection_enabled(&self, value: bool)
pub fn set_automatic_data_collection_enabled(&self, value: bool)
Updates the automatic data collection flag for the app.
Sourcepub fn container(&self) -> ComponentContainer
pub fn container(&self) -> ComponentContainer
Exposes the component container for advanced service registration.
Sourcepub fn add_component(&self, component: Component) -> AppResult<()>
pub fn add_component(&self, component: Component) -> AppResult<()>
Adds a lazily-initialized component to the app.
Sourcepub fn add_or_overwrite_component(&self, component: Component) -> AppResult<()>
pub fn add_or_overwrite_component(&self, component: Component) -> AppResult<()>
Adds a component, replacing any existing implementation with the same name.
Sourcepub fn remove_service_instance(&self, name: &str, identifier: Option<&str>)
pub fn remove_service_instance(&self, name: &str, identifier: Option<&str>)
Removes a cached service instance from the specified provider.
Sourcepub fn is_deleted(&self) -> bool
pub fn is_deleted(&self) -> bool
Returns whether the app has been explicitly deleted.
Sourcepub fn set_is_deleted(&self, value: bool)
pub fn set_is_deleted(&self, value: bool)
Marks the app as deleted (internal use).
Sourcepub fn check_destroyed(&self) -> AppResult<()>
pub fn check_destroyed(&self) -> AppResult<()>
Verifies that the app has not been deleted before performing operations.
Trait Implementations§
Source§impl Clone for FirebaseApp
impl Clone for FirebaseApp
Source§fn clone(&self) -> FirebaseApp
fn clone(&self) -> FirebaseApp
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for FirebaseApp
impl RefUnwindSafe for FirebaseApp
impl Send for FirebaseApp
impl Sync for FirebaseApp
impl Unpin for FirebaseApp
impl UnwindSafe for FirebaseApp
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