pub struct History {
pub secret_rotations: Vec<SecretRotation>,
pub machine_masterings: Vec<MachineMastering>,
pub config_changes: Vec<ConfigChange>,
}Expand description
History tracking for .bin files.
Fields§
§secret_rotations: Vec<SecretRotation>Secret rotation events
machine_masterings: Vec<MachineMastering>Machine mastering events
config_changes: Vec<ConfigChange>Configuration change events
Implementations§
Source§impl History
impl History
Sourcepub fn record_secret_rotation(
&mut self,
machine_id: &[u8; 32],
old_secret_hash: &str,
new_secret_hash: &str,
)
pub fn record_secret_rotation( &mut self, machine_id: &[u8; 32], old_secret_hash: &str, new_secret_hash: &str, )
Record a secret rotation.
Sourcepub fn record_machine_mastering(
&mut self,
from_machine: &[u8; 32],
to_machine: &[u8; 32],
mastered_by: &[u8; 32],
)
pub fn record_machine_mastering( &mut self, from_machine: &[u8; 32], to_machine: &[u8; 32], mastered_by: &[u8; 32], )
Record a machine mastering.
Sourcepub fn record_config_change(
&mut self,
machine_id: &[u8; 32],
field: &str,
old_value: Option<&str>,
new_value: Option<&str>,
)
pub fn record_config_change( &mut self, machine_id: &[u8; 32], field: &str, old_value: Option<&str>, new_value: Option<&str>, )
Record a configuration change.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for History
impl<'de> Deserialize<'de> for History
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for History
impl RefUnwindSafe for History
impl Send for History
impl Sync for History
impl Unpin for History
impl UnwindSafe for History
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