#[non_exhaustive]pub struct RecordSignature {
pub id: &'static str,
pub container_id: &'static str,
pub artifact_id: Option<&'static str>,
pub name: &'static str,
pub header_magic: &'static [u8],
pub footer_magic: &'static [u8],
pub header_offset: usize,
pub min_size: Option<usize>,
pub alignment: Option<usize>,
pub invariants: &'static [&'static str],
pub sources: &'static [&'static str],
}Expand description
How to recognize or validate individual records or payloads inside a container, including carved fragments.
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.id: &'static strMachine-readable record identifier.
container_id: &'static strParent container id.
artifact_id: Option<&'static str>Optional artifact id this signature is directly associated with.
name: &'static strHuman-readable display name.
header_magic: &'static [u8]Expected magic or marker bytes near the start of the record.
Optional footer or trailer bytes when present and stable.
header_offset: usizeByte offset where header_magic is expected.
min_size: Option<usize>Minimum plausible record size.
alignment: Option<usize>Expected alignment or chunking rule.
invariants: &'static [&'static str]Structural validation rules beyond simple magic bytes.
sources: &'static [&'static str]Authoritative references for the record structure.
Trait Implementations§
Source§impl Clone for RecordSignature
impl Clone for RecordSignature
Source§fn clone(&self) -> RecordSignature
fn clone(&self) -> RecordSignature
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 moreimpl Copy for RecordSignature
Source§impl Debug for RecordSignature
impl Debug for RecordSignature
impl Eq for RecordSignature
Source§impl PartialEq for RecordSignature
impl PartialEq for RecordSignature
Source§fn eq(&self, other: &RecordSignature) -> bool
fn eq(&self, other: &RecordSignature) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RecordSignature
Auto Trait Implementations§
impl Freeze for RecordSignature
impl RefUnwindSafe for RecordSignature
impl Send for RecordSignature
impl Sync for RecordSignature
impl Unpin for RecordSignature
impl UnsafeUnpin for RecordSignature
impl UnwindSafe for RecordSignature
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