Struct nostr_sdk::nips::nip26::Conditions
source · pub struct Conditions(/* private fields */);
Expand description
Set of conditions of a delegation.
Implementations§
source§impl Conditions
impl Conditions
sourcepub fn new() -> Conditions
pub fn new() -> Conditions
New empty Conditions
Trait Implementations§
source§impl Clone for Conditions
impl Clone for Conditions
source§fn clone(&self) -> Conditions
fn clone(&self) -> Conditions
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 Conditions
impl Debug for Conditions
source§impl Default for Conditions
impl Default for Conditions
source§fn default() -> Conditions
fn default() -> Conditions
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for Conditions
impl<'de> Deserialize<'de> for Conditions
source§fn deserialize<D>(
deserializer: D
) -> Result<Conditions, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>( deserializer: D ) -> Result<Conditions, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for Conditions
impl Display for Conditions
source§impl FromStr for Conditions
impl FromStr for Conditions
source§impl Hash for Conditions
impl Hash for Conditions
source§impl Ord for Conditions
impl Ord for Conditions
source§fn cmp(&self, other: &Conditions) -> Ordering
fn cmp(&self, other: &Conditions) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<Conditions> for Conditions
impl PartialEq<Conditions> for Conditions
source§fn eq(&self, other: &Conditions) -> bool
fn eq(&self, other: &Conditions) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<Conditions> for Conditions
impl PartialOrd<Conditions> for Conditions
source§fn partial_cmp(&self, other: &Conditions) -> Option<Ordering>
fn partial_cmp(&self, other: &Conditions) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for Conditions
impl Serialize for Conditions
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>( &self, serializer: S ) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for Conditions
impl StructuralEq for Conditions
impl StructuralPartialEq for Conditions
Auto Trait Implementations§
impl RefUnwindSafe for Conditions
impl Send for Conditions
impl Sync for Conditions
impl Unpin for Conditions
impl UnwindSafe for Conditions
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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.