pub struct SubscribeView {
pub turns: Option<i64>,
}Expand description
Optional client-requested shape for a subscription snapshot.
Fields§
§turns: Option<i64>Advisory number of most-recent completed turns to expose in a chat snapshot.
Servers MAY return more or fewer turns than requested. When omitted, the
host MUST return all retained turns. When older turns remain available, the
returned {@link ChatState} carries turnsNextCursor; clients pass that
cursor to fetchTurns to ask the host to page more turns into the chat
state.
Trait Implementations§
Source§impl Clone for SubscribeView
impl Clone for SubscribeView
Source§fn clone(&self) -> SubscribeView
fn clone(&self) -> SubscribeView
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 SubscribeView
impl Debug for SubscribeView
Source§impl Default for SubscribeView
impl Default for SubscribeView
Source§fn default() -> SubscribeView
fn default() -> SubscribeView
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SubscribeView
impl<'de> Deserialize<'de> for SubscribeView
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 SubscribeView
impl PartialEq for SubscribeView
Source§fn eq(&self, other: &SubscribeView) -> bool
fn eq(&self, other: &SubscribeView) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SubscribeView
impl Serialize for SubscribeView
impl StructuralPartialEq for SubscribeView
Auto Trait Implementations§
impl Freeze for SubscribeView
impl RefUnwindSafe for SubscribeView
impl Send for SubscribeView
impl Sync for SubscribeView
impl Unpin for SubscribeView
impl UnsafeUnpin for SubscribeView
impl UnwindSafe for SubscribeView
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