pub struct MetadataParts {
pub schema_version: u16,
pub version: u8,
pub config: Config,
pub frame_count: u64,
pub last_frame_len: Option<u64>,
pub raw_lengths: Option<Lengths>,
pub payload_lengths: Option<Lengths>,
}Expand description
Self-contained external metadata, including keys. It is not self-authenticating.
Persist it in trusted storage and restore with Metadata::from_parts.
Fields§
§schema_version: u16Required schema identifier. Only METADATA_SCHEMA_VERSION is supported.
version: u8Frame format identifier; currently FORMAT_VERSION.
config: ConfigObject profile.
frame_count: u64Exact number of nonempty frames.
last_frame_len: Option<u64>Only for a nonempty fixed-framing object. Full final frames are allowed.
raw_lengths: Option<Lengths>Required only for variable logical framing; includes the last frame.
payload_lengths: Option<Lengths>Required only with compression; excludes tags, includes raw fallbacks.
Trait Implementations§
Source§impl Clone for MetadataParts
impl Clone for MetadataParts
Source§impl Debug for MetadataParts
impl Debug for MetadataParts
impl Eq for MetadataParts
Source§impl PartialEq for MetadataParts
impl PartialEq for MetadataParts
impl StructuralPartialEq for MetadataParts
Auto Trait Implementations§
impl Freeze for MetadataParts
impl RefUnwindSafe for MetadataParts
impl Send for MetadataParts
impl Sync for MetadataParts
impl Unpin for MetadataParts
impl UnsafeUnpin for MetadataParts
impl UnwindSafe for MetadataParts
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