pub struct ReactionDraft {
pub participants: Vec<NostrPublicKey>,
pub parent_id: NostrEventId,
pub parent_author: NostrPublicKey,
pub parent_kind: NostrEventKind,
pub reaction: String,
pub custom_emoji_url: Option<String>,
pub created_at: u64,
}Expand description
Canonical private-reaction writer input.
Fields§
§participants: Vec<NostrPublicKey>Every conversation participant except the author.
parent_id: NostrEventIdReferenced event ID.
Referenced event author.
parent_kind: NostrEventKindReferenced event kind.
reaction: StringUnicode reaction or :shortcode:.
custom_emoji_url: Option<String>HTTPS custom-emoji URL when reaction is a shortcode.
created_at: u64Explicit application timestamp.
Trait Implementations§
Source§impl Clone for ReactionDraft
impl Clone for ReactionDraft
Source§fn clone(&self) -> ReactionDraft
fn clone(&self) -> ReactionDraft
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 ReactionDraft
impl Debug for ReactionDraft
Source§impl PartialEq for ReactionDraft
impl PartialEq for ReactionDraft
Source§fn eq(&self, other: &ReactionDraft) -> bool
fn eq(&self, other: &ReactionDraft) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ReactionDraft
impl StructuralPartialEq for ReactionDraft
Auto Trait Implementations§
impl Freeze for ReactionDraft
impl RefUnwindSafe for ReactionDraft
impl Send for ReactionDraft
impl Sync for ReactionDraft
impl Unpin for ReactionDraft
impl UnsafeUnpin for ReactionDraft
impl UnwindSafe for ReactionDraft
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