pub struct Installations { /* private fields */ }Implementations§
Source§impl Installations
impl Installations
pub fn app(&self) -> &FirebaseApp
pub async fn get_id(&self) -> InstallationsResult<String>
Sourcepub fn on_id_change<F>(&self, callback: F) -> IdChangeUnsubscribe
pub fn on_id_change<F>(&self, callback: F) -> IdChangeUnsubscribe
Registers a listener that fires whenever the Installation ID changes.
pub async fn get_token( &self, force_refresh: bool, ) -> InstallationsResult<InstallationToken>
pub async fn installation_entry( &self, ) -> InstallationsResult<InstallationEntryData>
Sourcepub async fn delete(&self) -> InstallationsResult<()>
pub async fn delete(&self) -> InstallationsResult<()>
Deletes the current Firebase Installation, clearing cached state and persisted data.
Trait Implementations§
Source§impl Clone for Installations
impl Clone for Installations
Source§fn clone(&self) -> Installations
fn clone(&self) -> Installations
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 moreSource§impl Debug for Installations
impl Debug for Installations
Source§impl InstallationsTokenProvider for Installations
impl InstallationsTokenProvider for Installations
fn installation_id<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = InstallationsResult<String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn installation_token<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = InstallationsResult<String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Auto Trait Implementations§
impl Freeze for Installations
impl !RefUnwindSafe for Installations
impl Send for Installations
impl Sync for Installations
impl Unpin for Installations
impl !UnwindSafe for Installations
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