Enum nostr_types::EventDelegation
source · pub enum EventDelegation {
NotDelegated,
InvalidDelegation(String),
DelegatedBy(PublicKey),
}
Expand description
Delegation information for an Event
Variants§
NotDelegated
The event was not delegated
InvalidDelegation(String)
The delegation was invalid (with reason)
DelegatedBy(PublicKey)
The event was delegated and is valid (with pubkey of delegator)
Trait Implementations§
source§impl Clone for EventDelegation
impl Clone for EventDelegation
source§fn clone(&self) -> EventDelegation
fn clone(&self) -> EventDelegation
Returns a copy of the value. Read more
1.0.0 · 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 EventDelegation
impl Debug for EventDelegation
source§impl PartialEq for EventDelegation
impl PartialEq for EventDelegation
source§fn eq(&self, other: &EventDelegation) -> bool
fn eq(&self, other: &EventDelegation) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for EventDelegation
impl StructuralPartialEq for EventDelegation
Auto Trait Implementations§
impl Freeze for EventDelegation
impl RefUnwindSafe for EventDelegation
impl Send for EventDelegation
impl Sync for EventDelegation
impl Unpin for EventDelegation
impl UnwindSafe for EventDelegation
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