pub struct ArchiveMember { /* private fields */ }Expand description
One declared archive path and its single-component extraction filename.
Implementations§
Source§impl ArchiveMember
impl ArchiveMember
Sourcepub fn new(
source_path: impl Into<String>,
output_name: impl Into<String>,
expected_size: Option<u64>,
expected_sha256: Option<[u8; 32]>,
) -> Result<Self, ExtractionError>
pub fn new( source_path: impl Into<String>, output_name: impl Into<String>, expected_size: Option<u64>, expected_sha256: Option<[u8; 32]>, ) -> Result<Self, ExtractionError>
Declares one member. Expected size and SHA-256 are checked when present.
Sourcepub fn source_path(&self) -> &str
pub fn source_path(&self) -> &str
Returns the exact normalized member path expected in the archive.
Sourcepub fn output_name(&self) -> &str
pub fn output_name(&self) -> &str
Returns the output filename inside the private extraction root.
Trait Implementations§
Source§impl Clone for ArchiveMember
impl Clone for ArchiveMember
Source§impl Debug for ArchiveMember
impl Debug for ArchiveMember
impl Eq for ArchiveMember
Source§impl PartialEq for ArchiveMember
impl PartialEq for ArchiveMember
impl StructuralPartialEq for ArchiveMember
Auto Trait Implementations§
impl Freeze for ArchiveMember
impl RefUnwindSafe for ArchiveMember
impl Send for ArchiveMember
impl Sync for ArchiveMember
impl Unpin for ArchiveMember
impl UnsafeUnpin for ArchiveMember
impl UnwindSafe for ArchiveMember
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.