pub struct Thread {
pub id: String,
pub agent: String,
pub holder: MailAddress,
pub participants: Vec<Participant>,
pub markers: BTreeMap<String, String>,
pub surface: Option<String>,
pub created_at_ms: u64,
pub holder_launched: bool,
pub parent: Option<String>,
}Expand description
A root and its replies.
Fields§
§id: StringThe root’s message id (s-<session id> for a session started directly).
agent: StringThe agent it belongs to.
holder: MailAddressThe agent’s session holding it: main until it is delegated.
participants: Vec<Participant>Everyone who receives its lines.
markers: BTreeMap<String, String>A channel’s platform ids of its messages, each to its message id.
surface: Option<String>Where it is shown, when it has a surface (rh2:<room>/<conversation>).
created_at_ms: u64When it was opened, epoch milliseconds.
holder_launched: boolThe mailbox launched its holder (message delegate), so it may resume
it the same way; a holder it did not launch is never resumed by mail.
parent: Option<String>The thread a side conversation was opened from: a thread session’s own mail to someone other than main. Its lines never reach the parent thread’s other participants.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Thread
impl<'de> Deserialize<'de> for Thread
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 Thread
impl StructuralPartialEq for Thread
Auto Trait Implementations§
impl Freeze for Thread
impl RefUnwindSafe for Thread
impl Send for Thread
impl Sync for Thread
impl Unpin for Thread
impl UnsafeUnpin for Thread
impl UnwindSafe for Thread
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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§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.