Struct crypt4gh::header::HeaderInfo
source · [−]Expand description
Contains the basic information of the header.
Fields
magic_number: [u8; 8]
A “magic” string for file type identification. It should be the ASCII representation of the string “crypt4gh”.
version: u32
A version number (four-byte little-endian). The current version is 1.
packets_count: u32
The number of packets that the header contains.
Trait Implementations
sourceimpl Debug for HeaderInfo
impl Debug for HeaderInfo
sourceimpl<'de> Deserialize<'de> for HeaderInfo
impl<'de> Deserialize<'de> for HeaderInfo
sourcefn 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
sourceimpl Serialize for HeaderInfo
impl Serialize for HeaderInfo
Auto Trait Implementations
impl RefUnwindSafe for HeaderInfo
impl Send for HeaderInfo
impl Sync for HeaderInfo
impl Unpin for HeaderInfo
impl UnwindSafe for HeaderInfo
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more