pub struct AionFile {
pub file_id: FileId,
pub current_version: VersionNumber,
pub flags: u16,
pub root_hash: [u8; 32],
pub current_hash: [u8; 32],
pub created_at: u64,
pub modified_at: u64,
pub encrypted_rules: Vec<u8>,
pub versions: Vec<VersionEntry>,
pub signatures: Vec<SignatureEntry>,
pub audit_entries: Vec<AuditEntry>,
pub string_table: Vec<u8>,
}Expand description
AION file data for serialization
Fields§
§file_id: FileIdFile ID
current_version: VersionNumberCurrent version number
flags: u16Feature flags (bit 0 = encrypted)
root_hash: [u8; 32]Root hash (genesis version)
current_hash: [u8; 32]Current hash (latest version)
created_at: u64Creation timestamp (nanoseconds)
modified_at: u64Modification timestamp (nanoseconds)
encrypted_rules: Vec<u8>Encrypted rules data (nonce + ciphertext + tag)
versions: Vec<VersionEntry>Version chain entries
signatures: Vec<SignatureEntry>Signature entries
audit_entries: Vec<AuditEntry>Audit trail entries
string_table: Vec<u8>String table (concatenated null-terminated strings)
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AionFile
impl RefUnwindSafe for AionFile
impl Send for AionFile
impl Sync for AionFile
impl Unpin for AionFile
impl UnsafeUnpin for AionFile
impl UnwindSafe for AionFile
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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