pub struct RunRecord {
pub schema_version: u32,
pub run_id: String,
pub gateway: String,
pub mode: String,
pub render_sha256: String,
pub plan_sha256: String,
pub state: RecordState,
pub rolled_back_by: Option<String>,
pub touched: Vec<TouchedEntry>,
pub pre_fingerprint: String,
pub post_fingerprint: Option<String>,
}Expand description
The run record.
Fields§
§schema_version: u32Always 1.
run_id: StringThe run this record belongs to.
gateway: StringThe gateway directory name (the target’s gateway).
mode: StringThe deployment mode (the target’s mode).
render_sha256: Stringrender_sha256 of the render this run deployed.
plan_sha256: Stringplan_sha256 of the plan this run applied.
state: RecordStateWhere the run stands.
rolled_back_by: Option<String>The rollback run that restored this one; only when rolled_back.
touched: Vec<TouchedEntry>The touched paths, byte-sorted and unique.
pre_fingerprint: StringThe touched-set fingerprint before the run.
post_fingerprint: Option<String>The touched-set fingerprint after the run; None while applying.
Implementations§
Source§impl RunRecord
impl RunRecord
Sourcepub fn parse(
location: &str,
bytes: &[u8],
gateway: &str,
mode: &str,
) -> Result<RunRecord, CoreError>
pub fn parse( location: &str, bytes: &[u8], gateway: &str, mode: &str, ) -> Result<RunRecord, CoreError>
Parse and validate bytes read from location, for the target
gateway and mode.
Sourcepub fn to_bytes(&self) -> Vec<u8> ⓘ
pub fn to_bytes(&self) -> Vec<u8> ⓘ
The canonical bytes: pretty JSON in field order plus one LF.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RunRecord
impl<'de> Deserialize<'de> for RunRecord
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 RunRecord
impl StructuralPartialEq for RunRecord
Auto Trait Implementations§
impl Freeze for RunRecord
impl RefUnwindSafe for RunRecord
impl Send for RunRecord
impl Sync for RunRecord
impl Unpin for RunRecord
impl UnsafeUnpin for RunRecord
impl UnwindSafe for RunRecord
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
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
Compare self to
key and return true if they are equal.