pub struct Header<'a> {
pub position: u64,
pub format: ArchiveFormat,
pub kind: UstarKind,
pub declared_size: u64,
pub effective_size: u64,
pub mode: Option<u64>,
pub uid: Option<u64>,
pub gid: Option<u64>,
pub mtime: Option<u64>,
pub uname: &'a [u8],
pub gname: &'a [u8],
/* private fields */
}Expand description
Extracted ordinary-header metadata for one logical archive member.
Unlike HeaderFrame, this type does not retain the lossless physical
header block. Its ordinary path and link-path fallbacks borrow reusable
storage owned by TarReader.
Fields§
§position: u64The absolute byte position of the ordinary member header block.
format: ArchiveFormatThe selected archive family of this member header.
kind: UstarKindThe member type identified by the header.
declared_size: u64The size encoded directly in the member header field.
effective_size: u64The size after applying applicable pax size records.
This is also the number of payload bytes exposed through
MemberPayload. Member kinds that cannot carry payload are rejected
when either their declared or effective size is nonzero.
mode: Option<u64>Permission and mode bits decoded from the ordinary header, if present.
Note that pax only defines the semantics of the lower 12 bits of this field. Higher bits may or may not be set, and have no assigned semantics.
This is None only when the field is wholly NUL and the framing policy
permits missing numeric metadata.
uid: Option<u64>Numeric user identifier from the ordinary header, if present.
This is None only when the field is wholly NUL and the framing policy
permits missing numeric metadata.
Applicable pax metadata may override or delete this fallback.
gid: Option<u64>Numeric group identifier from the ordinary header, if present.
This is None only when the field is wholly NUL and the framing policy
permits missing numeric metadata.
Applicable pax metadata may override or delete this fallback.
mtime: Option<u64>Modification time in seconds from the ordinary header, if present.
This is None only when the field is wholly NUL and the framing policy
permits missing numeric metadata.
Applicable pax metadata may override or delete this fallback.
uname: &'a [u8]User name bytes from the ordinary header, empty if absent or unusable.
Applicable pax metadata may override or delete this fallback.
gname: &'a [u8]Group name bytes from the ordinary header, empty if absent or unusable.
Applicable pax metadata may override or delete this fallback.