pub struct GenerationRecord {
pub schema: u32,
pub commit: String,
pub tree: String,
pub at: String,
pub outcome: String,
}Expand description
One recorded generation check: the fields of GENERATION_RECORD this reads.
use majordomus_cli::environment::preflight::GenerationRecord;
let r: GenerationRecord = serde_json::from_str(r#"{"schema": 1, "check": "scripts/pages current",
"commit": "abc", "tree": "", "at": "2026-09-30T00:00:00Z", "outcome": "pass"}"#).unwrap();
// an empty tree is a working tree that was not the index: the check proved no tree
assert!(r.tree.is_empty());Fields§
§schema: u32The format; this reads 1.
commit: StringHEAD when the check ran; before a commit, that commit’s parent.
tree: StringThe tree the check measured (git write-tree of the index), or empty when the working
tree differed from the index and so no tree is what was measured.
at: StringWhen it was recorded, RFC 3339.
outcome: Stringpass, fail, or partial when the registry half could not be checked.
Trait Implementations§
Source§impl Clone for GenerationRecord
impl Clone for GenerationRecord
Source§fn clone(&self) -> GenerationRecord
fn clone(&self) -> GenerationRecord
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 GenerationRecord
impl Debug for GenerationRecord
Source§impl<'de> Deserialize<'de> for GenerationRecord
impl<'de> Deserialize<'de> for GenerationRecord
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 GenerationRecord
Source§impl PartialEq for GenerationRecord
impl PartialEq for GenerationRecord
Source§fn eq(&self, other: &GenerationRecord) -> bool
fn eq(&self, other: &GenerationRecord) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for GenerationRecord
Auto Trait Implementations§
impl Freeze for GenerationRecord
impl RefUnwindSafe for GenerationRecord
impl Send for GenerationRecord
impl Sync for GenerationRecord
impl Unpin for GenerationRecord
impl UnsafeUnpin for GenerationRecord
impl UnwindSafe for GenerationRecord
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.