pub struct SubjectDraft {
pub created_at: u64,
pub participants: Vec<NostrPublicKey>,
pub subject: String,
pub emoji_tags: Vec<NostrTag>,
pub icon: Option<AttachmentMetadata>,
pub extension_tags: Vec<NostrTag>,
}Expand description
Canonical group-subject writer input.
Fields§
§created_at: u64Explicit application timestamp.
participants: Vec<NostrPublicKey>Every conversation participant except the author.
subject: StringSubject text; empty explicitly clears text.
Exact custom-emoji tags referenced by the subject.
icon: Option<AttachmentMetadata>Optional icon metadata. Its URL and dimensions are mirrored to image.
Caller-owned future tags.
Trait Implementations§
Source§impl Clone for SubjectDraft
impl Clone for SubjectDraft
Source§fn clone(&self) -> SubjectDraft
fn clone(&self) -> SubjectDraft
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 SubjectDraft
impl Debug for SubjectDraft
Source§impl PartialEq for SubjectDraft
impl PartialEq for SubjectDraft
Source§fn eq(&self, other: &SubjectDraft) -> bool
fn eq(&self, other: &SubjectDraft) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for SubjectDraft
impl StructuralPartialEq for SubjectDraft
Auto Trait Implementations§
impl Freeze for SubjectDraft
impl RefUnwindSafe for SubjectDraft
impl Send for SubjectDraft
impl Sync for SubjectDraft
impl Unpin for SubjectDraft
impl UnsafeUnpin for SubjectDraft
impl UnwindSafe for SubjectDraft
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