Enum rive_models::snapshot::SnapshotContent
source · pub enum SnapshotContent {
Message {
prior_context: Vec<Message>,
leading_context: Vec<Message>,
message: Box<Message>,
},
Server(Server),
User(User),
}Expand description
Enum to map into different models that can be saved in a snapshot
Variants§
Trait Implementations§
source§impl Clone for SnapshotContent
impl Clone for SnapshotContent
source§fn clone(&self) -> SnapshotContent
fn clone(&self) -> SnapshotContent
Returns a copy 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 SnapshotContent
impl Debug for SnapshotContent
source§impl<'de> Deserialize<'de> for SnapshotContent
impl<'de> Deserialize<'de> for SnapshotContent
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 SnapshotContent
impl Send for SnapshotContent
impl Sync for SnapshotContent
impl Unpin for SnapshotContent
impl UnwindSafe for SnapshotContent
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