pub struct LiveChatMessage {
pub content: String,
pub host: Coordinate,
pub host_relay_hint: Option<RelayUrl>,
pub host_marker: Option<String>,
pub parent_id: Option<EventId>,
pub parent_id_relay_hint: Option<RelayUrl>,
pub quote_id: Option<EventId>,
pub quote_id_relay_hint: Option<RelayUrl>,
pub quote_author: Option<PublicKey>,
pub extra_tags: Vec<Tag>,
}Expand description
Typed bundle for a kind: 1311 live chat message.
Fields§
§content: String.content body.
host: CoordinateRequired a tag pointing at the host event (30311 / 30313 /
30312).
host_relay_hint: Option<RelayUrl>Optional relay hint for the host coordinate.
host_marker: Option<String>Optional thread-marker on the host a tag (root, etc).
parent_id: Option<EventId>Optional e tag pointing at the parent chat message.
parent_id_relay_hint: Option<RelayUrl>Optional relay hint for Self::parent_id.
quote_id: Option<EventId>Optional q tag (NIP-21 citation).
quote_id_relay_hint: Option<RelayUrl>Optional relay hint for Self::quote_id.
Optional quoted-event author pubkey (4th column of q).
Forward-compatible passthrough for unknown tags.
Implementations§
Trait Implementations§
Source§impl Clone for LiveChatMessage
impl Clone for LiveChatMessage
Source§fn clone(&self) -> LiveChatMessage
fn clone(&self) -> LiveChatMessage
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 LiveChatMessage
impl Debug for LiveChatMessage
impl Eq for LiveChatMessage
Source§impl PartialEq for LiveChatMessage
impl PartialEq for LiveChatMessage
impl StructuralPartialEq for LiveChatMessage
Auto Trait Implementations§
impl Freeze for LiveChatMessage
impl RefUnwindSafe for LiveChatMessage
impl Send for LiveChatMessage
impl Sync for LiveChatMessage
impl Unpin for LiveChatMessage
impl UnsafeUnpin for LiveChatMessage
impl UnwindSafe for LiveChatMessage
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,
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.