pub enum TagKind {
Show 27 variants
P,
E,
R,
T,
G,
D,
A,
Relay,
Nonce,
Delegation,
ContentWarning,
Expiration,
Subject,
Challenge,
Title,
Image,
Thumb,
Summary,
PublishedAt,
Description,
Bolt11,
Preimage,
Relays,
Amount,
Lnurl,
Name,
Custom(String),
}Expand description
Tag kind
Variants§
P
Public key
E
Event id
R
Reference (URL, etc.)
T
Hashtag
G
Geohash
D
Identifier
A
Referencing and tagging
Relay
Relay
Nonce
Nonce
Delegation
Delegation
ContentWarning
Content warning
Expiration
Expiration
Subject
Subject
Challenge
Auth challenge
Title
Title (NIP23)
Image
Image (NIP23)
Thumb
Thumbnail
Summary
Summary (NIP23)
PublishedAt
PublishedAt (NIP23)
Description
Description (NIP57)
Bolt11
Bolt11 Invoice (NIP57)
Preimage
Preimage (NIP57)
Relays
Relays (NIP57)
Amount
Amount (NIP57)
Lnurl
Lnurl (NIP57)
Name
Name tag
Custom(String)
Custom tag kind
Trait Implementations§
source§impl Ord for TagKind
impl Ord for TagKind
source§impl PartialEq<TagKind> for TagKind
impl PartialEq<TagKind> for TagKind
source§impl PartialOrd<TagKind> for TagKind
impl PartialOrd<TagKind> for TagKind
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 moreimpl Eq for TagKind
impl StructuralEq for TagKind
impl StructuralPartialEq for TagKind
Auto Trait Implementations§
impl RefUnwindSafe for TagKind
impl Send for TagKind
impl Sync for TagKind
impl Unpin for TagKind
impl UnwindSafe for TagKind
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.