pub enum Kind {
Show 45 variants
Metadata,
TextNote,
RecommendRelay,
ContactList,
EncryptedDirectMessage,
EventDeletion,
Repost,
Reaction,
BadgeAward,
ChannelCreation,
ChannelMetadata,
ChannelMessage,
ChannelHideMessage,
ChannelMuteUser,
PublicChatReserved45,
PublicChatReserved46,
PublicChatReserved47,
PublicChatReserved48,
PublicChatReserved49,
WalletConnectInfo,
Reporting,
ZapRequest,
ZapReceipt,
MuteList,
PinList,
RelayList,
Authentication,
WalletConnectRequest,
WalletConnectResponse,
NostrConnect,
CategorizedPeopleList,
CategorizedBookmarkList,
LiveEvent,
LiveEventMessage,
ProfileBadges,
BadgeDefinition,
LongFormTextNote,
ApplicationSpecificData,
FileMetadata,
HttpAuth,
Regular(u16),
Replaceable(u16),
Ephemeral(u16),
ParameterizedReplaceable(u16),
Custom(u64),
}
Expand description
Event Kind
Variants§
Metadata
Metadata (NIP01 and NIP05)
TextNote
Short Text Note (NIP01)
RecommendRelay
Recommend Relay (NIP01)
ContactList
Contacts (NIP02)
EncryptedDirectMessage
Encrypted Direct Messages (NIP04)
EventDeletion
Event Deletion (NIP09)
Repost
Repost (NIP18)
Reaction
Reaction (NIP25)
BadgeAward
Badge Award (NIP58)
ChannelCreation
Channel Creation (NIP28)
ChannelMetadata
Channel Metadata (NIP28)
ChannelMessage
Channel Message (NIP28)
ChannelHideMessage
Channel Hide Message (NIP28)
ChannelMuteUser
Channel Mute User (NIP28)
PublicChatReserved45
Public Chat Reserved (NIP28)
PublicChatReserved46
Public Chat Reserved (NIP28)
PublicChatReserved47
Public Chat Reserved (NIP28)
PublicChatReserved48
Public Chat Reserved (NIP28)
PublicChatReserved49
Public Chat Reserved (NIP28)
WalletConnectInfo
Wallet Service Info (NIP47)
Reporting
Reporting (NIP56)
ZapRequest
Zap Request (NIP57)
ZapReceipt
Zap Receipt (NIP57)
MuteList
Mute List (NIP51)
PinList
Pin List (NIP51)
RelayList
Relay List Metadata (NIP65)
Authentication
Client Authentication (NIP42)
WalletConnectRequest
Wallet Connect Request (NIP47)
WalletConnectResponse
Wallet Connect Response (NIP47)
NostrConnect
Nostr Connect (NIP46)
CategorizedPeopleList
Categorized People List (NIP51)
CategorizedBookmarkList
Categorized Bookmark List (NIP51)
LiveEvent
Live Event (NIP53)
LiveEventMessage
Live Event Message (NIP53)
ProfileBadges
Profile Badges (NIP58)
BadgeDefinition
Badge Definition (NIP58)
LongFormTextNote
Long-form Text Note (NIP23)
ApplicationSpecificData
Application-specific Data (NIP78)
FileMetadata
File Metadata (NIP94)
HttpAuth
HTTP Auth (NIP98)
Regular(u16)
Regular Events (must be between 1000 and <=9999)
Replaceable(u16)
Replaceable event (must be between 10000 and <20000)
Ephemeral(u16)
Ephemeral event (must be between 20000 and <30000)
ParameterizedReplaceable(u16)
Parameterized replaceable event (must be between 30000 and <40000)
Custom(u64)
Custom
Implementations§
source§impl Kind
impl Kind
sourcepub fn is_regular(&self) -> bool
pub fn is_regular(&self) -> bool
Check if Kind
is Regular
sourcepub fn is_replaceable(&self) -> bool
pub fn is_replaceable(&self) -> bool
Check if Kind
is Replaceable
sourcepub fn is_ephemeral(&self) -> bool
pub fn is_ephemeral(&self) -> bool
Check if Kind
is Ephemeral
sourcepub fn is_parameterized_replaceable(&self) -> bool
pub fn is_parameterized_replaceable(&self) -> bool
Check if Kind
is Parameterized replaceable
Trait Implementations§
source§impl<'de> Deserialize<'de> for Kind
impl<'de> Deserialize<'de> for Kind
source§fn deserialize<D>(
deserializer: D
) -> Result<Kind, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>( deserializer: D ) -> Result<Kind, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
source§impl Ord for Kind
impl Ord for Kind
source§impl PartialEq<Kind> for Kind
impl PartialEq<Kind> for Kind
source§impl PartialOrd<Kind> for Kind
impl PartialOrd<Kind> for Kind
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for Kind
impl Serialize for Kind
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,
impl Copy for Kind
impl Eq for Kind
impl StructuralEq for Kind
Auto Trait Implementations§
impl RefUnwindSafe for Kind
impl Send for Kind
impl Sync for Kind
impl Unpin for Kind
impl UnwindSafe for Kind
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<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
key
and return true
if they are equal.