pub struct StateSnapshotView {
pub app_state: Option<AppStateView>,
pub subnet_state: Option<SubnetStateView>,
pub app_directory: Option<AppDirectoryView>,
pub subnet_directory: Option<SubnetDirectoryView>,
}Expand description
StateSnapshotView Snapshot of mutable state and directory sections that can be propagated to peers. Pure DTO.
Fields§
§app_state: Option<AppStateView>§subnet_state: Option<SubnetStateView>§app_directory: Option<AppDirectoryView>§subnet_directory: Option<SubnetDirectoryView>Trait Implementations§
Source§impl CandidType for StateSnapshotView
impl CandidType for StateSnapshotView
Source§impl Clone for StateSnapshotView
impl Clone for StateSnapshotView
Source§fn clone(&self) -> StateSnapshotView
fn clone(&self) -> StateSnapshotView
Returns a duplicate of the value. Read more
1.0.0 · 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 StateSnapshotView
impl Debug for StateSnapshotView
Source§impl<'de> Deserialize<'de> for StateSnapshotView
impl<'de> Deserialize<'de> for StateSnapshotView
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 StateSnapshotView
impl RefUnwindSafe for StateSnapshotView
impl Send for StateSnapshotView
impl Sync for StateSnapshotView
impl Unpin for StateSnapshotView
impl UnwindSafe for StateSnapshotView
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