pub struct SessionHistoryPage {
pub session_id: String,
pub request_id: String,
pub start_index: usize,
pub messages: Vec<SessionHistoryMessage>,
pub has_earlier: bool,
}Expand description
One bounded earlier page from a durable conversation.
Fields§
§session_id: StringDurable session identifier that owns the page.
request_id: StringRequest identity echoed from SessionHistoryParams.
start_index: usizeIndex of the earliest message included in this page.
messages: Vec<SessionHistoryMessage>Messages in chronological order.
has_earlier: boolWhether the archive contains messages before this page.
Trait Implementations§
Source§impl Clone for SessionHistoryPage
impl Clone for SessionHistoryPage
Source§impl Debug for SessionHistoryPage
impl Debug for SessionHistoryPage
Source§impl<'de> Deserialize<'de> for SessionHistoryPage
impl<'de> Deserialize<'de> for SessionHistoryPage
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
impl Eq for SessionHistoryPage
Source§impl PartialEq for SessionHistoryPage
impl PartialEq for SessionHistoryPage
Source§impl Serialize for SessionHistoryPage
impl Serialize for SessionHistoryPage
impl StructuralPartialEq for SessionHistoryPage
Auto Trait Implementations§
impl Forget for SessionHistoryPage
impl Freeze for SessionHistoryPage
impl RefUnwindSafe for SessionHistoryPage
impl Send for SessionHistoryPage
impl Sync for SessionHistoryPage
impl Unpin for SessionHistoryPage
impl UnsafeUnpin for SessionHistoryPage
impl UnwindSafe for SessionHistoryPage
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.