Struct slpm_file::header_v0::HeaderV0 [−][src]
pub struct HeaderV0 {
pub version: u16,
pub datatype: DataType,
pub name: String,
pub created: u64,
pub edited: u64,
pub file_name: String,
pub buffer_size: u64,
}Fields
version: u16u16 Version indicating which struct to deserialize to (for future)
datatype: DataTypeu8 Matched to enum DataType
name: StringUTF-8 string with 1024 bits capacity
created: u64u64 Create date in seconds after epoch
edited: u64u64 Edit date in seconds after epoch
file_name: StringUTF-8 string with 1024 bits capacity
buffer_size: u64u64 stores buffer size for decoding purposes (maybe have buffer size = cypher length when not used?)
Implementations
Panics
Panics when any of the values cannot be parsed as provided or the enum integer is unknown
Trait Implementations
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 HeaderV0
impl UnwindSafe for HeaderV0
Blanket Implementations
Mutably borrows from an owned value. Read more