pub struct IdentitySnapshot {
pub format_version: u32,
pub database_id: String,
pub primary_generation: u64,
pub created_unix_secs: u64,
}Fields§
§format_version: u32§database_id: String§primary_generation: u64§created_unix_secs: u64Implementations§
Source§impl IdentitySnapshot
impl IdentitySnapshot
pub fn from_identity(identity: DatabaseIdentity, created_unix_secs: u64) -> Self
pub fn identity(&self) -> Result<DatabaseIdentity>
pub fn validate(&self) -> Result<()>
Trait Implementations§
Source§impl Clone for IdentitySnapshot
impl Clone for IdentitySnapshot
Source§fn clone(&self) -> IdentitySnapshot
fn clone(&self) -> IdentitySnapshot
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 IdentitySnapshot
impl Debug for IdentitySnapshot
Source§impl<'de> Deserialize<'de> for IdentitySnapshot
impl<'de> Deserialize<'de> for IdentitySnapshot
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for IdentitySnapshot
Source§impl PartialEq for IdentitySnapshot
impl PartialEq for IdentitySnapshot
Source§impl Serialize for IdentitySnapshot
impl Serialize for IdentitySnapshot
impl StructuralPartialEq for IdentitySnapshot
Auto Trait Implementations§
impl Freeze for IdentitySnapshot
impl RefUnwindSafe for IdentitySnapshot
impl Send for IdentitySnapshot
impl Sync for IdentitySnapshot
impl Unpin for IdentitySnapshot
impl UnsafeUnpin for IdentitySnapshot
impl UnwindSafe for IdentitySnapshot
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