pub struct MemberMeta {
pub name: String,
pub safe_path: Option<String>,
pub declared_size: u64,
pub is_dir: bool,
pub is_symlink: bool,
pub encrypted: bool,
}Expand description
One member’s central-directory metadata, read before any inflation.
Fields§
§name: StringThe raw entry name as stored in the archive.
safe_path: Option<String>The safe relative path, or None when the entry name is
absolute, escapes with .., carries a drive prefix, or is
otherwise unsafe as a mirror path.
declared_size: u64Declared uncompressed size from the central directory.
is_dir: boolTrue for a directory entry, which is listed but never a child.
is_symlink: boolTrue for a symlink entry, refused like an unsafe path.
encrypted: boolTrue when the member is encrypted.
Trait Implementations§
Source§impl Clone for MemberMeta
impl Clone for MemberMeta
Auto Trait Implementations§
impl Freeze for MemberMeta
impl RefUnwindSafe for MemberMeta
impl Send for MemberMeta
impl Sync for MemberMeta
impl Unpin for MemberMeta
impl UnsafeUnpin for MemberMeta
impl UnwindSafe for MemberMeta
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more