pub struct Nip44EncryptedMessage { /* private fields */ }Expand description
A typed native-Rust NIP-44 v2 message.
Implementations§
Source§impl Nip44EncryptedMessage
impl Nip44EncryptedMessage
Sourcepub const fn new(
sender_public_key: NostrPublicKey,
payload: Nip44Payload,
) -> Self
pub const fn new( sender_public_key: NostrPublicKey, payload: Nip44Payload, ) -> Self
Construct a typed message from validated values.
Sourcepub const fn sender_public_key(&self) -> &NostrPublicKey
pub const fn sender_public_key(&self) -> &NostrPublicKey
Return the authenticated sender candidate used by NIP-44.
Sourcepub const fn payload(&self) -> &Nip44Payload
pub const fn payload(&self) -> &Nip44Payload
Return the encoded NIP-44 payload.
Trait Implementations§
Source§impl Clone for Nip44EncryptedMessage
impl Clone for Nip44EncryptedMessage
Source§fn clone(&self) -> Nip44EncryptedMessage
fn clone(&self) -> Nip44EncryptedMessage
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 Nip44EncryptedMessage
impl Debug for Nip44EncryptedMessage
Source§impl PartialEq for Nip44EncryptedMessage
impl PartialEq for Nip44EncryptedMessage
Source§fn eq(&self, other: &Nip44EncryptedMessage) -> bool
fn eq(&self, other: &Nip44EncryptedMessage) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for Nip44EncryptedMessage
impl StructuralPartialEq for Nip44EncryptedMessage
Auto Trait Implementations§
impl Freeze for Nip44EncryptedMessage
impl RefUnwindSafe for Nip44EncryptedMessage
impl Send for Nip44EncryptedMessage
impl Sync for Nip44EncryptedMessage
impl Unpin for Nip44EncryptedMessage
impl UnsafeUnpin for Nip44EncryptedMessage
impl UnwindSafe for Nip44EncryptedMessage
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