pub struct AssistantSessionListing {
pub sessions: Vec<AssistantSessionRecord>,
pub undecodable: Vec<UndecodableAssistantSession>,
}Expand description
Complete assistant-session listing, including poisoned-row visibility.
Fields§
§sessions: Vec<AssistantSessionRecord>Successfully decoded records, ordered by created_at then session id.
undecodable: Vec<UndecodableAssistantSession>Present rows that could not be decoded, ordered by session id text.
Implementations§
Source§impl AssistantSessionListing
impl AssistantSessionListing
Sourcepub fn sort(&mut self)
pub fn sort(&mut self)
Put the listing in its contract order: sessions by created_at then
session id, poisoned rows by session id.
One helper rather than a sort at each backend, so “ordered by created_at
then id” is one rule with one implementation instead of two that could
tie-break differently on the same instant.
Trait Implementations§
Source§impl Clone for AssistantSessionListing
impl Clone for AssistantSessionListing
Source§fn clone(&self) -> AssistantSessionListing
fn clone(&self) -> AssistantSessionListing
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 AssistantSessionListing
impl Debug for AssistantSessionListing
Source§impl Default for AssistantSessionListing
impl Default for AssistantSessionListing
Source§fn default() -> AssistantSessionListing
fn default() -> AssistantSessionListing
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AssistantSessionListing
impl<'de> Deserialize<'de> for AssistantSessionListing
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 AssistantSessionListing
Source§impl PartialEq for AssistantSessionListing
impl PartialEq for AssistantSessionListing
Source§impl Serialize for AssistantSessionListing
impl Serialize for AssistantSessionListing
impl StructuralPartialEq for AssistantSessionListing
Auto Trait Implementations§
impl Freeze for AssistantSessionListing
impl RefUnwindSafe for AssistantSessionListing
impl Send for AssistantSessionListing
impl Sync for AssistantSessionListing
impl Unpin for AssistantSessionListing
impl UnsafeUnpin for AssistantSessionListing
impl UnwindSafe for AssistantSessionListing
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