Skip to main content

Manifest

Struct Manifest 

Source
pub struct Manifest {
    pub schema_version: u64,
    pub rk_version: String,
    pub payload_sha256: Digest,
    pub origin: String,
    pub tech: String,
    pub forge: String,
    pub landed_at: String,
    pub parameters: Parameters,
    pub files: Vec<FileRecord>,
    pub pins: BTreeMap<String, String>,
}
Expand description

The record a landing writes and every target-side verb reads.

Fields§

§schema_version: u64

An integer this binary either knows or refuses on.

§rk_version: String

The binary that produced the landing.

§payload_sha256: Digest

The aggregate payload digest from rk payload: which payload actually landed, where the version alone is ambiguous.

§origin: String

init or adopt — how the record came to exist.

§tech: String

The technology that selected the payload.

§forge: String

The forge that selected the payload.

§landed_at: String

When the first landing happened; an upgrade preserves it.

§parameters: Parameters

Every value substituted into a rendered file, so a re-render is reproducible without asking again.

§files: Vec<FileRecord>

Every landed destination with its kind and digests.

§pins: BTreeMap<String, String>

The registry pins the landed technology uses, copied at landing time; rk status compares them offline.

Implementations§

Source§

impl Manifest

Source

pub fn file(&self, destination: &str) -> Option<&FileRecord>

The recorded entry for one destination, where the record names it.

Trait Implementations§

Source§

impl Debug for Manifest

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for Manifest

Source§

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 Manifest

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.