pub struct Nip59EnvelopeRoute { /* private fields */ }Expand description
Verified outer-envelope routing metadata that does not expose plaintext.
Implementations§
Source§impl Nip59EnvelopeRoute
impl Nip59EnvelopeRoute
Sourcepub const fn outer_event_id(&self) -> NostrEventId
pub const fn outer_event_id(&self) -> NostrEventId
Return the verified outer event ID.
Sourcepub fn recipient(&self) -> NostrPublicKey
pub fn recipient(&self) -> NostrPublicKey
Return the one canonical recipient advertised by the wrapper.
Sourcepub const fn kind(&self) -> Nip59EnvelopeKind
pub const fn kind(&self) -> Nip59EnvelopeKind
Return the relay-storage behavior of the wrapper.
Trait Implementations§
Source§impl Clone for Nip59EnvelopeRoute
impl Clone for Nip59EnvelopeRoute
Source§fn clone(&self) -> Nip59EnvelopeRoute
fn clone(&self) -> Nip59EnvelopeRoute
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 Nip59EnvelopeRoute
impl Debug for Nip59EnvelopeRoute
Source§impl PartialEq for Nip59EnvelopeRoute
impl PartialEq for Nip59EnvelopeRoute
Source§fn eq(&self, other: &Nip59EnvelopeRoute) -> bool
fn eq(&self, other: &Nip59EnvelopeRoute) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for Nip59EnvelopeRoute
impl StructuralPartialEq for Nip59EnvelopeRoute
Auto Trait Implementations§
impl Freeze for Nip59EnvelopeRoute
impl RefUnwindSafe for Nip59EnvelopeRoute
impl Send for Nip59EnvelopeRoute
impl Sync for Nip59EnvelopeRoute
impl Unpin for Nip59EnvelopeRoute
impl UnsafeUnpin for Nip59EnvelopeRoute
impl UnwindSafe for Nip59EnvelopeRoute
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<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