pub enum TagKind<'a> {
Show 60 variants
Aes256Gcm,
Alt,
Amount,
Anon,
Blurhash,
Bolt11,
Challenge,
Client,
Clone,
Commit,
ContentWarning,
CurrentParticipants,
Delegation,
Dependency,
Description,
Dim,
Emoji,
Encrypted,
Ends,
Expiration,
Extension,
File,
Image,
License,
Lnurl,
Magnet,
Maintainers,
Method,
MlsProtocolVersion,
MlsCiphersuite,
MlsExtensions,
Name,
Nonce,
Payload,
Preimage,
Protected,
Proxy,
PublishedAt,
Recording,
Relay,
Relays,
Repository,
Request,
Runtime,
Server,
Size,
Starts,
Status,
Streaming,
Subject,
Summary,
Title,
Thumb,
TotalParticipants,
Tracker,
Url,
Web,
Word,
SingleLetter(SingleLetterTag),
Custom(Cow<'a, str>),
}
Expand description
Tag kind
Variants§
Aes256Gcm
AES 256 GCM
Alt
Human-readable plaintext summary of what that event is about
Amount
Amount
Anon
Anonymous
Blurhash
Blurhash
Bolt11
Bolt11 invoice
Challenge
Challenge
Client
Clone
Clone
Commit
ContentWarning
Content warning
CurrentParticipants
Current participants
Delegation
Delegation
Dependency
Required dependency
Description
Description
Dim
Size of the file in pixels
Emoji
Emoji
Encrypted
Encrypted
Ends
Ends
Expiration
Extension
File extension
File
File
Image
Image
License
License of the shared content
Lnurl
Lnurl
Magnet
Magnet
Maintainers
Maintainers
Method
HTTP Method Request
MlsProtocolVersion
MLS Protocol Version
MlsCiphersuite
MLS Cipher Suite
MlsExtensions
MLS Extensions
Name
Name
Nonce
Payload
Payload
Preimage
Preimage
Protected
Protected event
Proxy
Proxy
PublishedAt
PublishedAt
Recording
Recording
Relay
Relay
Relays
Relays
Repository
Reference to the origin repository
Request
Request
Runtime
Runtime or environment specification
Server
Server
Size
Size of the file in bytes
Starts
Starts
Status
Status
Streaming
Streaming
Subject
Subject
Summary
Summary
Title
Title
Thumb
Thumbnail
TotalParticipants
Total participants
Tracker
Tracker
Url
Url
Web
Web
Word
Word
SingleLetter(SingleLetterTag)
Single letter
Custom(Cow<'a, str>)
Custom
Implementations§
Source§impl<'a> TagKind<'a>
impl<'a> TagKind<'a>
Sourcepub fn single_letter(character: Alphabet, uppercase: bool) -> Self
pub fn single_letter(character: Alphabet, uppercase: bool) -> Self
Construct a single letter tag
Sourcepub fn a() -> Self
pub fn a() -> Self
Construct a
kind
Shorthand for TagKind::SingleLetter(SingleLetterTag::lowercase(Alphabet::A))
.
Sourcepub fn d() -> Self
pub fn d() -> Self
Construct d
kind
Shorthand for TagKind::SingleLetter(SingleLetterTag::lowercase(Alphabet::D))
.
Sourcepub fn e() -> Self
pub fn e() -> Self
Construct e
kind
Shorthand for TagKind::SingleLetter(SingleLetterTag::lowercase(Alphabet::E))
.
Sourcepub fn h() -> Self
pub fn h() -> Self
Construct h
kind
Shorthand for TagKind::SingleLetter(SingleLetterTag::lowercase(Alphabet::H))
.
Sourcepub fn i() -> Self
pub fn i() -> Self
Construct i
kind
Shorthand for TagKind::SingleLetter(SingleLetterTag::lowercase(Alphabet::I))
.
Sourcepub fn k() -> Self
pub fn k() -> Self
Construct k
kind
Shorthand for TagKind::SingleLetter(SingleLetterTag::lowercase(Alphabet::K))
.
Sourcepub fn p() -> Self
pub fn p() -> Self
Construct p
kind
Shorthand for TagKind::SingleLetter(SingleLetterTag::lowercase(Alphabet::P))
.
Sourcepub fn t() -> Self
pub fn t() -> Self
Construct t
kind
Shorthand for TagKind::SingleLetter(SingleLetterTag::lowercase(Alphabet::T))
.
Sourcepub fn u() -> Self
pub fn u() -> Self
Construct u
kind
Shorthand for TagKind::SingleLetter(SingleLetterTag::lowercase(Alphabet::U))
.
Sourcepub fn q() -> Self
pub fn q() -> Self
Construct q
kind
Shorthand for TagKind::SingleLetter(SingleLetterTag::lowercase(Alphabet::Q))
.
Sourcepub fn x() -> Self
pub fn x() -> Self
Construct x
kind
Shorthand for TagKind::SingleLetter(SingleLetterTag::lowercase(Alphabet::X))
.
Sourcepub fn custom<T>(kind: T) -> Self
pub fn custom<T>(kind: T) -> Self
Construct TagKind::Custom
Shorthand for TagKind::Custom(Cow::from(...))
.
Trait Implementations§
Source§impl Ord for TagKind<'_>
impl Ord for TagKind<'_>
Source§impl PartialOrd for TagKind<'_>
impl PartialOrd for TagKind<'_>
impl Eq for TagKind<'_>
Auto Trait Implementations§
impl<'a> Freeze for TagKind<'a>
impl<'a> RefUnwindSafe for TagKind<'a>
impl<'a> Send for TagKind<'a>
impl<'a> Sync for TagKind<'a>
impl<'a> Unpin for TagKind<'a>
impl<'a> UnwindSafe for TagKind<'a>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string
, but without panic on OOM.