#[non_exhaustive]pub struct ViewSnapshot {
pub schema_version: u64,
pub view_cursor: String,
pub anchor: Option<SnapshotAnchor>,
pub state: SnapshotState,
}Expand description
The snapshot object returned by session/resume / session/read.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.schema_version: u64Snapshot schema version. A client whose generated types are older than this must fall back to inline/paged history.
view_cursor: StringThe cursor the state is folded at; every event after it streams as the suffix.
anchor: Option<SnapshotAnchor>Present exactly when history.mode is anchoredSnapshot.
state: SnapshotStateThe complete folded view at viewCursor.
Trait Implementations§
Source§impl Clone for ViewSnapshot
impl Clone for ViewSnapshot
Source§impl Debug for ViewSnapshot
impl Debug for ViewSnapshot
Source§impl<'de> Deserialize<'de> for ViewSnapshot
impl<'de> Deserialize<'de> for ViewSnapshot
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 ViewSnapshot
impl PartialEq for ViewSnapshot
Source§impl Serialize for ViewSnapshot
impl Serialize for ViewSnapshot
impl StructuralPartialEq for ViewSnapshot
Auto Trait Implementations§
impl Forget for ViewSnapshot
impl Freeze for ViewSnapshot
impl Move for ViewSnapshot
impl RefUnwindSafe for ViewSnapshot
impl Send for ViewSnapshot
impl Sync for ViewSnapshot
impl Unpin for ViewSnapshot
impl UnsafeUnpin for ViewSnapshot
impl UnwindSafe for ViewSnapshot
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