pub enum Relation {
Reply {
in_reply_to: InReplyTo,
},
Replacement(Replacement),
Thread(Thread),
// some variants omitted
}
Available on crate feature
events
only.Expand description
Message event relationship.
Variants
Reply
Fields
in_reply_to: InReplyTo
Information about another message being replied to.
An m.in_reply_to
relation indicating that the event is a reply to another event.
Replacement(Replacement)
Available on crate feature
unstable-msc2676
only.An event that replaces another event.
Thread(Thread)
Available on crate feature
unstable-msc3440
only.An event that belongs to a thread.
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Relation
impl<'de> Deserialize<'de> for Relation
sourcefn 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
Auto Trait Implementations
impl RefUnwindSafe for Relation
impl Send for Relation
impl Sync for Relation
impl Unpin for Relation
impl UnwindSafe for Relation
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more