pub struct AionFileBuilder { /* private fields */ }Expand description
Builder for AionFile
Implementations§
Source§impl AionFileBuilder
impl AionFileBuilder
Sourcepub const fn current_version(self, version: VersionNumber) -> Self
pub const fn current_version(self, version: VersionNumber) -> Self
Set the current version number
Sourcepub const fn current_hash(self, hash: [u8; 32]) -> Self
pub const fn current_hash(self, hash: [u8; 32]) -> Self
Set current hash
Sourcepub const fn created_at(self, timestamp: u64) -> Self
pub const fn created_at(self, timestamp: u64) -> Self
Set creation timestamp
Sourcepub const fn modified_at(self, timestamp: u64) -> Self
pub const fn modified_at(self, timestamp: u64) -> Self
Set modification timestamp
Sourcepub fn encrypted_rules(self, data: Vec<u8>) -> Self
pub fn encrypted_rules(self, data: Vec<u8>) -> Self
Set encrypted rules data
Sourcepub fn add_version(self, version: VersionEntry) -> Self
pub fn add_version(self, version: VersionEntry) -> Self
Add a version entry
Sourcepub fn versions(self, versions: Vec<VersionEntry>) -> Self
pub fn versions(self, versions: Vec<VersionEntry>) -> Self
Set all version entries
Sourcepub fn add_signature(self, signature: SignatureEntry) -> Self
pub fn add_signature(self, signature: SignatureEntry) -> Self
Add a signature entry
Sourcepub fn signatures(self, signatures: Vec<SignatureEntry>) -> Self
pub fn signatures(self, signatures: Vec<SignatureEntry>) -> Self
Set all signature entries
Sourcepub fn add_audit_entry(self, entry: AuditEntry) -> Self
pub fn add_audit_entry(self, entry: AuditEntry) -> Self
Add an audit entry
Sourcepub fn audit_entries(self, entries: Vec<AuditEntry>) -> Self
pub fn audit_entries(self, entries: Vec<AuditEntry>) -> Self
Set all audit entries
Sourcepub fn string_table(self, table: Vec<u8>) -> Self
pub fn string_table(self, table: Vec<u8>) -> Self
Set string table
Trait Implementations§
Source§impl Debug for AionFileBuilder
impl Debug for AionFileBuilder
Source§impl Default for AionFileBuilder
impl Default for AionFileBuilder
Source§fn default() -> AionFileBuilder
fn default() -> AionFileBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AionFileBuilder
impl RefUnwindSafe for AionFileBuilder
impl Send for AionFileBuilder
impl Sync for AionFileBuilder
impl Unpin for AionFileBuilder
impl UnsafeUnpin for AionFileBuilder
impl UnwindSafe for AionFileBuilder
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> 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