pub struct BotSessions {
pub name: String,
pub sessions: usize,
pub messages: usize,
pub last_session: String,
pub last_activity_ms: u64,
pub archived: bool,
}Expand description
One bot’s conversations, as the Bots tab reads them (#509).
The tab lists identities, not sessions: a bot answering on a lane opens one conversation and
keeps it, so the row is “this bot, last heard from then, this much said”. sessions counts
every conversation the bot has had — a cleared one is archived, not deleted, and the count is
what says it happened.
Fields§
§name: String§sessions: usize§messages: usizeMessages in the newest conversation, which is the one the row’s label describes.
last_session: StringThe newest conversation: what the row opens.
last_activity_ms: u64§archived: boolEvery conversation this bot has is archived: it was cleared, and nothing has been said since. The row still lists it — an identity does not stop existing because its transcript was filed away.
Trait Implementations§
Source§impl Clone for BotSessions
impl Clone for BotSessions
Source§impl Debug for BotSessions
impl Debug for BotSessions
impl Eq for BotSessions
Source§impl PartialEq for BotSessions
impl PartialEq for BotSessions
impl StructuralPartialEq for BotSessions
Auto Trait Implementations§
impl Forget for BotSessions
impl Freeze for BotSessions
impl Move for BotSessions
impl RefUnwindSafe for BotSessions
impl Send for BotSessionswhere
RawVecInner: Send,
impl Sync for BotSessionswhere
RawVecInner: Sync,
impl Unpin for BotSessions
impl UnsafeUnpin for BotSessions
impl UnwindSafe for BotSessionswhere
RawVecInner: UnwindSafe,
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.