pub struct Manifest {
pub schema_version: u32,
pub canon_version: CanonVersion,
pub canon_source: String,
pub profile: ProfileId,
pub docs_root: DocsRoot,
pub installed_at: String,
pub plan_zone: PlanZone,
pub docs_scratch: Option<Utf8PathBuf>,
pub managed_files: Vec<ManagedEntry>,
pub adopted_files: Vec<AdoptedEntry>,
pub integration_blocks: Vec<IntegrationBlock>,
}Expand description
Everything an instance records about itself.
Fields§
§schema_version: u32Always SCHEMA_VERSION once parsed.
canon_version: CanonVersionThe canon release that produced the installed payload.
canon_source: StringWhere that canon is published.
profile: ProfileIdThe profile the instance was installed with.
docs_root: DocsRootThe documentation root the gates read.
installed_at: StringWhen the instance was first installed; preserved across reinstalls.
plan_zone: PlanZoneWhere the planning tool writes entry documents.
docs_scratch: Option<Utf8PathBuf>Where material that is not a statement yet is kept.
managed_files: Vec<ManagedEntry>Byte projections the canon keeps owning.
adopted_files: Vec<AdoptedEntry>Files the instance owns against a recorded baseline.
integration_blocks: Vec<IntegrationBlock>Marked regions the canon owns inside project files.
Implementations§
Source§impl Manifest
impl Manifest
Sourcepub fn parse(json: &str) -> Result<Self, ManifestParseError>
pub fn parse(json: &str) -> Result<Self, ManifestParseError>
Parse and validate a serialized manifest.
§Errors
ManifestParseError::Older / ManifestParseError::Newer when the
recorded schema version is not SCHEMA_VERSION, and
ManifestParseError::Invalid for anything that does not fit the
schema or records no managed file.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Manifest
impl<'de> Deserialize<'de> for Manifest
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>,
impl Eq for Manifest
impl StructuralPartialEq for Manifest
Auto Trait Implementations§
impl Freeze for Manifest
impl RefUnwindSafe for Manifest
impl Send for Manifest
impl Sync for Manifest
impl Unpin for Manifest
impl UnsafeUnpin for Manifest
impl UnwindSafe for Manifest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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
key and return true if they are equal.