pub struct IamSnapshot {
pub schema_version: u32,
pub accounts: Option<MultiAccountState<IamState>>,
pub state: Option<IamState>,
}Expand description
On-disk snapshot envelope for IAM state. Versioned so future schema changes fail loudly instead of silently corrupting state.
Schema v2 stores multi-account state. v1 snapshots are migrated on
load by wrapping the single IamState as the default account.
Fields§
§schema_version: u32§accounts: Option<MultiAccountState<IamState>>v2+: multi-account state. Present when schema_version >= 2.
state: Option<IamState>v1 compat: single-account state. Present when schema_version == 1.
Trait Implementations§
Source§impl Clone for IamSnapshot
impl Clone for IamSnapshot
Source§fn clone(&self) -> IamSnapshot
fn clone(&self) -> IamSnapshot
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for IamSnapshot
impl Debug for IamSnapshot
Source§impl<'de> Deserialize<'de> for IamSnapshot
impl<'de> Deserialize<'de> for IamSnapshot
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 IamSnapshot
impl RefUnwindSafe for IamSnapshot
impl Send for IamSnapshot
impl Sync for IamSnapshot
impl Unpin for IamSnapshot
impl UnsafeUnpin for IamSnapshot
impl UnwindSafe for IamSnapshot
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