pub struct DynamoDbSnapshot {
pub schema_version: u32,
pub accounts: Option<MultiAccountState<DynamoDbState>>,
pub state: Option<DynamoDbState>,
}Expand description
On-disk snapshot envelope. The payload is the full DynamoDbState;
schema_version lets us evolve the format without accidentally loading
an incompatible dump on upgrade.
Fields§
§schema_version: u32§accounts: Option<MultiAccountState<DynamoDbState>>v2+: multi-account state.
state: Option<DynamoDbState>v1 compat: single-account state.
Trait Implementations§
Source§impl Clone for DynamoDbSnapshot
impl Clone for DynamoDbSnapshot
Source§fn clone(&self) -> DynamoDbSnapshot
fn clone(&self) -> DynamoDbSnapshot
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 DynamoDbSnapshot
impl Debug for DynamoDbSnapshot
Source§impl<'de> Deserialize<'de> for DynamoDbSnapshot
impl<'de> Deserialize<'de> for DynamoDbSnapshot
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 !RefUnwindSafe for DynamoDbSnapshot
impl !UnwindSafe for DynamoDbSnapshot
impl Freeze for DynamoDbSnapshot
impl Send for DynamoDbSnapshot
impl Sync for DynamoDbSnapshot
impl Unpin for DynamoDbSnapshot
impl UnsafeUnpin for DynamoDbSnapshot
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