pub struct ArchiveMetadata {
pub id: u32,
pub name_hash: i32,
pub crc: u32,
pub hash: i32,
pub whirlpool: [u8; 64],
pub version: u32,
pub entry_count: usize,
pub valid_ids: Vec<u32>,
}
Expand description
Metadata on every archive.
§Example
TODO This type needs refining so be prepared for breaking changes when using it.
Fields§
§id: u32
§name_hash: i32
§crc: u32
§hash: i32
§whirlpool: [u8; 64]
§version: u32
§entry_count: usize
§valid_ids: Vec<u32>
Trait Implementations§
Source§impl Clone for ArchiveMetadata
impl Clone for ArchiveMetadata
Source§fn clone(&self) -> ArchiveMetadata
fn clone(&self) -> ArchiveMetadata
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ArchiveMetadata
impl Debug for ArchiveMetadata
Source§impl<'de> Deserialize<'de> for ArchiveMetadata
impl<'de> Deserialize<'de> for ArchiveMetadata
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for ArchiveMetadata
impl Hash for ArchiveMetadata
Source§impl Ord for ArchiveMetadata
impl Ord for ArchiveMetadata
Source§fn cmp(&self, other: &ArchiveMetadata) -> Ordering
fn cmp(&self, other: &ArchiveMetadata) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ArchiveMetadata
impl PartialEq for ArchiveMetadata
Source§impl PartialOrd for ArchiveMetadata
impl PartialOrd for ArchiveMetadata
Source§impl Serialize for ArchiveMetadata
impl Serialize for ArchiveMetadata
impl Eq for ArchiveMetadata
impl StructuralPartialEq for ArchiveMetadata
Auto Trait Implementations§
impl Freeze for ArchiveMetadata
impl RefUnwindSafe for ArchiveMetadata
impl Send for ArchiveMetadata
impl Sync for ArchiveMetadata
impl Unpin for ArchiveMetadata
impl UnwindSafe for ArchiveMetadata
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