pub struct HistoryPage {
pub messages: Vec<MessageRecord>,
pub users: Vec<UserRecord>,
pub has_more: bool,
pub next_cursor: Option<String>,
}Expand description
A page of chat history.
Fields§
§messages: Vec<MessageRecord>Messages in chronological order.
users: Vec<UserRecord>Users referenced by messages in this page, when available.
has_more: boolWhether older history exists.
next_cursor: Option<String>Opaque cursor for the next page, when available.
Trait Implementations§
Source§impl Clone for HistoryPage
impl Clone for HistoryPage
Source§fn clone(&self) -> HistoryPage
fn clone(&self) -> HistoryPage
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 HistoryPage
impl Debug for HistoryPage
Source§impl<'de> Deserialize<'de> for HistoryPage
impl<'de> Deserialize<'de> for HistoryPage
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 HistoryPage
Source§impl PartialEq for HistoryPage
impl PartialEq for HistoryPage
Source§impl Serialize for HistoryPage
impl Serialize for HistoryPage
impl StructuralPartialEq for HistoryPage
Auto Trait Implementations§
impl Freeze for HistoryPage
impl RefUnwindSafe for HistoryPage
impl Send for HistoryPage
impl Sync for HistoryPage
impl Unpin for HistoryPage
impl UnsafeUnpin for HistoryPage
impl UnwindSafe for HistoryPage
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