pub struct LegacyManifest {
pub schema_version: u32,
pub canon_version: CanonVersion,
pub profile: ProfileId,
pub docs_root: DocsRoot,
pub installed_at: String,
pub managed_files: Vec<LegacyOwnedFile>,
}Expand description
The parts of a schema-version-1 manifest an upgrade needs.
Deliberately permissive: unknown version-1 fields pass through unread so the upgrader can migrate any instance the previous distribution produced.
Fields§
§schema_version: u32The recorded schema version; the upgrader requires 1.
canon_version: CanonVersionThe canon release the instance was installed from.
profile: ProfileIdThe profile the instance was installed with.
docs_root: DocsRootThe documentation root the gates read.
installed_at: StringWhen the instance was first installed.
managed_files: Vec<LegacyOwnedFile>Destination and hash of every file version 1 managed.
Trait Implementations§
Source§impl Clone for LegacyManifest
impl Clone for LegacyManifest
Source§fn clone(&self) -> LegacyManifest
fn clone(&self) -> LegacyManifest
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 LegacyManifest
impl Debug for LegacyManifest
Source§impl<'de> Deserialize<'de> for LegacyManifest
impl<'de> Deserialize<'de> for LegacyManifest
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
Auto Trait Implementations§
impl Freeze for LegacyManifest
impl RefUnwindSafe for LegacyManifest
impl Send for LegacyManifest
impl Sync for LegacyManifest
impl Unpin for LegacyManifest
impl UnsafeUnpin for LegacyManifest
impl UnwindSafe for LegacyManifest
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