pub enum SnapshotState {
Session(Box<SessionState>),
Chat(Box<ChatState>),
Terminal(Box<TerminalState>),
Changeset(Box<ChangesetState>),
ResourceWatch(Box<ResourceWatchState>),
Annotations(Box<AnnotationsState>),
Root(Box<RootState>),
}Expand description
The state payload of a snapshot — root, session, chat, terminal, changeset, resource-watch, or annotations state.
Deserialized by trying session first (has required lifecycle), then
chat (has required turns), then terminal (has required content),
then changeset (has required status and files), then resource-watch
(has required root and recursive), then annotations (has required
annotations), then root.
Variants§
Session(Box<SessionState>)
Chat(Box<ChatState>)
Terminal(Box<TerminalState>)
Changeset(Box<ChangesetState>)
ResourceWatch(Box<ResourceWatchState>)
Annotations(Box<AnnotationsState>)
Root(Box<RootState>)
Trait Implementations§
Source§impl Clone for SnapshotState
impl Clone for SnapshotState
Source§fn clone(&self) -> SnapshotState
fn clone(&self) -> SnapshotState
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 SnapshotState
impl Debug for SnapshotState
Source§impl<'de> Deserialize<'de> for SnapshotState
impl<'de> Deserialize<'de> for SnapshotState
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
Source§impl PartialEq for SnapshotState
impl PartialEq for SnapshotState
Source§fn eq(&self, other: &SnapshotState) -> bool
fn eq(&self, other: &SnapshotState) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SnapshotState
impl Serialize for SnapshotState
impl StructuralPartialEq for SnapshotState
Auto Trait Implementations§
impl Freeze for SnapshotState
impl RefUnwindSafe for SnapshotState
impl Send for SnapshotState
impl Sync for SnapshotState
impl Unpin for SnapshotState
impl UnsafeUnpin for SnapshotState
impl UnwindSafe for SnapshotState
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