pub struct ChatMessageDraft {
pub created_at: u64,
pub participants: Vec<NostrPublicKey>,
pub content: String,
pub relation: ChatRelation,
pub attachments: Vec<AttachmentMetadata>,
pub emoji_tags: Vec<NostrTag>,
pub extension_tags: Vec<NostrTag>,
}Expand description
Canonical complete kind-14 message writer input.
Fields§
§created_at: u64Explicit application timestamp.
participants: Vec<NostrPublicKey>Every conversation participant except the author.
content: StringText content; may be empty only when at least one attachment is present.
relation: ChatRelationAt most one reply or forward.
attachments: Vec<AttachmentMetadata>Canonical inline attachments.
Exact canonical emoji tags.
Caller-owned future tags retained after known tags.
Trait Implementations§
Source§impl Clone for ChatMessageDraft
impl Clone for ChatMessageDraft
Source§fn clone(&self) -> ChatMessageDraft
fn clone(&self) -> ChatMessageDraft
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 ChatMessageDraft
impl Debug for ChatMessageDraft
Source§impl PartialEq for ChatMessageDraft
impl PartialEq for ChatMessageDraft
Source§fn eq(&self, other: &ChatMessageDraft) -> bool
fn eq(&self, other: &ChatMessageDraft) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ChatMessageDraft
impl StructuralPartialEq for ChatMessageDraft
Auto Trait Implementations§
impl Freeze for ChatMessageDraft
impl RefUnwindSafe for ChatMessageDraft
impl Send for ChatMessageDraft
impl Sync for ChatMessageDraft
impl Unpin for ChatMessageDraft
impl UnsafeUnpin for ChatMessageDraft
impl UnwindSafe for ChatMessageDraft
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
Create a new handle for an Arc value Read more
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
Clone a handle Read more
§unsafe fn consume_handle(handle: Handle) -> Arc<T>
unsafe fn consume_handle(handle: Handle) -> Arc<T>
Consume a handle, getting back the initial
Arc<> Read more