#[non_exhaustive]pub struct Header {
pub agent_commit: String,
pub goos: String,
pub goarch: String,
pub go_version: String,
pub container_image: String,
pub containerized: bool,
pub features: Vec<String>,
pub inputs_digest: String,
}Expand description
The header line (record.md §2). The reader accepts only format 1, so it is not kept.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.agent_commit: StringThe full 40-hex Agent commit the recorder built against.
goos: Stringruntime.GOOS of the recorder processes.
goarch: Stringruntime.GOARCH of the recorder processes.
go_version: Stringruntime.Version().
container_image: StringThe digest-pinned image the recorder processes ran in.
containerized: boolenv.IsContainerized() in the baseline process.
features: Vec<String>Sorted detected features in the baseline process (record.md §6).
inputs_digest: Stringsha256: and 64 hex: the recorder inputs the corpus was made from.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Header
impl RefUnwindSafe for Header
impl Send for Header
impl Sync for Header
impl Unpin for Header
impl UnsafeUnpin for Header
impl UnwindSafe for Header
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