pub struct UnwrappedNip59Envelope { /* private fields */ }Expand description
A rumor exposed only after every NIP-59 layer has authenticated.
Implementations§
Source§impl UnwrappedNip59Envelope
impl UnwrappedNip59Envelope
Sourcepub const fn outer_event_id(&self) -> NostrEventId
pub const fn outer_event_id(&self) -> NostrEventId
Return the verified one-time wrapper event ID.
Sourcepub const fn seal_event_id(&self) -> NostrEventId
pub const fn seal_event_id(&self) -> NostrEventId
Return the verified kind-13 seal event ID.
Sourcepub const fn kind(&self) -> Nip59EnvelopeKind
pub const fn kind(&self) -> Nip59EnvelopeKind
Return whether the outer event is durable or ephemeral.
Sourcepub const fn rumor(&self) -> &NostrRumor
pub const fn rumor(&self) -> &NostrRumor
Borrow the authenticated unsigned rumor.
Sourcepub fn into_rumor(self) -> NostrRumor
pub fn into_rumor(self) -> NostrRumor
Consume the envelope and return its authenticated rumor.
Trait Implementations§
Source§impl Clone for UnwrappedNip59Envelope
impl Clone for UnwrappedNip59Envelope
Source§fn clone(&self) -> UnwrappedNip59Envelope
fn clone(&self) -> UnwrappedNip59Envelope
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 UnwrappedNip59Envelope
impl Debug for UnwrappedNip59Envelope
Source§impl PartialEq for UnwrappedNip59Envelope
impl PartialEq for UnwrappedNip59Envelope
Source§fn eq(&self, other: &UnwrappedNip59Envelope) -> bool
fn eq(&self, other: &UnwrappedNip59Envelope) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for UnwrappedNip59Envelope
impl StructuralPartialEq for UnwrappedNip59Envelope
Auto Trait Implementations§
impl !Freeze for UnwrappedNip59Envelope
impl RefUnwindSafe for UnwrappedNip59Envelope
impl Send for UnwrappedNip59Envelope
impl Sync for UnwrappedNip59Envelope
impl Unpin for UnwrappedNip59Envelope
impl UnsafeUnpin for UnwrappedNip59Envelope
impl UnwindSafe for UnwrappedNip59Envelope
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