pub struct Relation {
pub event_id: OwnedEventId,
pub key: String,
}
Available on crate features
events
and unstable-msc2677
only.Expand description
Information about an annotation relation.
Fields
event_id: OwnedEventId
The event that is being annotated.
key: String
A string that indicates the annotation being applied.
When sending emoji reactions, this field should include the colourful variation-16 when applicable.
Clients should render reactions that have a long key
field in a sensible manner.
Implementations
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
sourceimpl From<Relation> for ReactionEventContent
impl From<Relation> for ReactionEventContent
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