pub struct BinStats {Show 19 fields
pub name: String,
pub alphabet_size: usize,
pub code_length: usize,
pub base_code_length: usize,
pub formatted_code_length: usize,
pub capacity: u128,
pub current_counter: u64,
pub total_generated: u64,
pub utilization_percent: f64,
pub remaining_capacity: u128,
pub counter_mode: CounterMode,
pub has_formatting: bool,
pub storage_encryption_enabled: bool,
pub created_at: Option<String>,
pub last_generated_at: Option<String>,
pub secret_rotation_count: usize,
pub machine_mastering_count: usize,
pub config_change_count: usize,
pub generation_log_count: usize,
}Expand description
Statistics about a .bin file.
Fields§
§name: StringName of the configuration.
alphabet_size: usizeAlphabet size.
code_length: usizeBase code length (without check digit).
base_code_length: usizeTotal code length (with check digit, without formatting).
formatted_code_length: usizeTotal code length (with formatting).
capacity: u128Maximum possible unique codes (alphabet_size ^ code_length).
current_counter: u64Current counter value.
total_generated: u64Total codes generated (from audit).
utilization_percent: f64Utilization percentage (current_counter / capacity * 100).
remaining_capacity: u128Remaining codes before capacity exhaustion.
counter_mode: CounterModeCounter mode.
has_formatting: boolHas prefix/suffix/separator formatting.
storage_encryption_enabled: boolStorage encryption enabled.
created_at: Option<String>Created timestamp.
last_generated_at: Option<String>Last generated timestamp.
secret_rotation_count: usizeNumber of secret rotations.
machine_mastering_count: usizeNumber of machine masterings.
config_change_count: usizeNumber of config changes.
generation_log_count: usizeNumber of generation log entries.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BinStats
impl RefUnwindSafe for BinStats
impl Send for BinStats
impl Sync for BinStats
impl Unpin for BinStats
impl UnwindSafe for BinStats
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