pub struct InstallationToken {
pub token: String,
pub expires_at: SystemTime,
}Expand description
Represents an authentication token produced by the Firebase Installations service.
Mirrors the JavaScript type defined in
packages/installations/src/interfaces/installation-entry.ts.
Fields§
§token: String§expires_at: SystemTimeImplementations§
Source§impl InstallationToken
impl InstallationToken
Sourcepub fn is_expired(&self) -> bool
pub fn is_expired(&self) -> bool
Returns true if the token has already expired.
Trait Implementations§
Source§impl Clone for InstallationToken
impl Clone for InstallationToken
Source§fn clone(&self) -> InstallationToken
fn clone(&self) -> InstallationToken
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 InstallationToken
impl Debug for InstallationToken
Source§impl PartialEq for InstallationToken
impl PartialEq for InstallationToken
impl Eq for InstallationToken
impl StructuralPartialEq for InstallationToken
Auto Trait Implementations§
impl Freeze for InstallationToken
impl RefUnwindSafe for InstallationToken
impl Send for InstallationToken
impl Sync for InstallationToken
impl Unpin for InstallationToken
impl UnwindSafe for InstallationToken
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.