Struct slpm_file::header_binary_v0::HeaderBinaryV0 [−][src]
pub struct HeaderBinaryV0 {
pub version: [u8; 2],
pub datatype: [u8; 1],
pub name: [u8; 128],
pub created: [u8; 8],
pub edited: [u8; 8],
pub file_name: [u8; 128],
pub buffer_size: [u8; 8],
}Fields
version: [u8; 2]u16 Version indicating which struct to deserialize to (for future)
datatype: [u8; 1]u8 Matched to enum DataType
name: [u8; 128]UTF-8 string with 1024 bits capacity
created: [u8; 8]u64 Create date in seconds after epoch
edited: [u8; 8]u64 Edit date in seconds after epoch
file_name: [u8; 128]UTF-8 string with 1024 bits capacity
buffer_size: [u8; 8]u64 when required, store buffer size for decoding purposes (maybe have buffer size = cypher length when not used?)
Implementations
Trait Implementations
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
This method returns an ordering between self and other values if one exists. Read more
This method tests less than (for self and other) and is used by the < operator. Read more
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
This method tests greater than (for self and other) and is used by the > operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for HeaderBinaryV0
impl Send for HeaderBinaryV0
impl Sync for HeaderBinaryV0
impl Unpin for HeaderBinaryV0
impl UnwindSafe for HeaderBinaryV0
Blanket Implementations
Mutably borrows from an owned value. Read more