pub struct Snapshot<A>where
A: Aggregate,{
pub aggregate_id: String,
pub state: A,
pub version: usize,
}Fields§
§aggregate_id: String§state: A§version: usizeTrait Implementations§
Source§impl<'de, A> Deserialize<'de> for Snapshot<A>where
A: Aggregate,
impl<'de, A> Deserialize<'de> for Snapshot<A>where
A: Aggregate,
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<A> Freeze for Snapshot<A>where
A: Freeze,
impl<A> RefUnwindSafe for Snapshot<A>where
A: RefUnwindSafe,
impl<A> Send for Snapshot<A>
impl<A> Sync for Snapshot<A>
impl<A> Unpin for Snapshot<A>where
A: Unpin,
impl<A> UnsafeUnpin for Snapshot<A>where
A: UnsafeUnpin,
impl<A> UnwindSafe for Snapshot<A>where
A: UnwindSafe,
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