pub struct InstallIdFile {
pub version: u32,
pub uuid: String,
pub generated_at: SystemTime,
}Expand description
Persisted install identifier.
Fields§
§version: u32§uuid: String§generated_at: SystemTimeTrait Implementations§
Source§impl Clone for InstallIdFile
impl Clone for InstallIdFile
Source§fn clone(&self) -> InstallIdFile
fn clone(&self) -> InstallIdFile
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 InstallIdFile
impl Debug for InstallIdFile
Source§impl Default for InstallIdFile
impl Default for InstallIdFile
Source§impl<'de> Deserialize<'de> for InstallIdFile
impl<'de> Deserialize<'de> for InstallIdFile
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
Source§impl Serialize for InstallIdFile
impl Serialize for InstallIdFile
Source§impl Versioned for InstallIdFile
impl Versioned for InstallIdFile
Source§const CURRENT_VERSION: u32 = 1
const CURRENT_VERSION: u32 = 1
The version this build understands. Bump when the schema changes
in a way that requires migration.
Source§fn set_version(&mut self, v: u32)
fn set_version(&mut self, v: u32)
Write a new version into this instance. Used by the migrator
after a successful chain of steps.
Auto Trait Implementations§
impl Freeze for InstallIdFile
impl RefUnwindSafe for InstallIdFile
impl Send for InstallIdFile
impl Sync for InstallIdFile
impl Unpin for InstallIdFile
impl UnsafeUnpin for InstallIdFile
impl UnwindSafe for InstallIdFile
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