pub struct TestRecord {
pub tested_at_epoch: u64,
pub outcome: String,
pub ssh_banner: Option<String>,
pub provenance: Provenance,
}Expand description
One line in the committed tested-isos.jsonl log: ISO identity plus
the install outcome. Written by install on SSH-banner success.
Fields§
§tested_at_epoch: u64§outcome: String§provenance: ProvenanceImplementations§
Source§impl TestRecord
impl TestRecord
Sourcepub const LOG: &str = "tested-isos.jsonl"
pub const LOG: &str = "tested-isos.jsonl"
Committed log filename (repo root, current dir at runtime).
Sourcepub fn append(provenance: Provenance, banner: &str) -> Result<PathBuf>
pub fn append(provenance: Provenance, banner: &str) -> Result<PathBuf>
Append one line to TestRecord::LOG in the current directory
(repo root in practice). Creates the file on first use.
Sourcepub fn load_sidecar(image: &Path) -> Result<Provenance>
pub fn load_sidecar(image: &Path) -> Result<Provenance>
Load the sidecar written by build-media for this image.
Trait Implementations§
Source§impl Clone for TestRecord
impl Clone for TestRecord
Source§impl Debug for TestRecord
impl Debug for TestRecord
Source§impl<'de> Deserialize<'de> for TestRecord
impl<'de> Deserialize<'de> for TestRecord
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 Forget for TestRecord
impl Freeze for TestRecord
impl Move for TestRecord
impl RefUnwindSafe for TestRecord
impl Send for TestRecordwhere
RawVecInner: Send,
impl Sync for TestRecordwhere
RawVecInner: Sync,
impl Unpin for TestRecord
impl UnsafeUnpin for TestRecordwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for TestRecordwhere
RawVecInner: UnwindSafe,
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