pub enum Method {
Show 21 variants
SupportedMethods,
BanPubkey,
UnbanPubkey,
ListBannedPubkeys,
AllowPubkey,
UnallowPubkey,
ListAllowedPubkeys,
ListEventsNeedingModeration,
AllowEvent,
BanEvent,
ListBannedEvents,
ChangeRelayName,
ChangeRelayDescription,
ChangeRelayIcon,
AllowKind,
DisallowKind,
ListAllowedKinds,
BlockIp,
UnblockIp,
ListBlockedIps,
Custom(String),
}Expand description
Spec-listed methods plus a forward-compatible passthrough.
Variants§
SupportedMethods
supportedmethods — server enumerates supported tokens.
BanPubkey
banpubkey — ban a pubkey.
UnbanPubkey
unbanpubkey — undo a ban.
ListBannedPubkeys
listbannedpubkeys.
AllowPubkey
allowpubkey — allowlist a pubkey.
UnallowPubkey
unallowpubkey — undo an allow.
ListAllowedPubkeys
listallowedpubkeys.
ListEventsNeedingModeration
listeventsneedingmoderation.
AllowEvent
allowevent.
BanEvent
banevent.
ListBannedEvents
listbannedevents.
ChangeRelayName
changerelayname.
ChangeRelayDescription
changerelaydescription.
ChangeRelayIcon
changerelayicon.
AllowKind
allowkind — accept a kind integer.
DisallowKind
disallowkind.
ListAllowedKinds
listallowedkinds.
BlockIp
blockip.
UnblockIp
unblockip.
ListBlockedIps
listblockedips.
Custom(String)
Forward-compatible passthrough for non-spec tokens.
Implementations§
Trait Implementations§
impl Eq for Method
impl StructuralPartialEq for Method
Auto Trait Implementations§
impl Freeze for Method
impl RefUnwindSafe for Method
impl Send for Method
impl Sync for Method
impl Unpin for Method
impl UnsafeUnpin for Method
impl UnwindSafe for Method
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.