#[non_exhaustive]pub enum ChangeKind {
Show 28 variants
Renamed {
old: String,
new: String,
},
DescriptionChanged {
old: Option<String>,
new: Option<String>,
},
IconChanged {
url: Option<String>,
},
BannerChanged {
url: Option<String>,
},
RelaysChanged {
relays: Vec<String>,
},
VoiceRelaysChanged {
relays: Vec<String>,
},
EveryoneChanged {
old: Option<Permissions>,
new: Option<Permissions>,
},
RoleCreated {
role: Role,
},
RoleUpdated {
old: Role,
new: Role,
},
RoleDeleted {
role: Role,
},
RolesReordered {
order: Vec<String>,
},
MemberRolesChanged {
member: String,
added: Vec<String>,
removed: Vec<String>,
},
MemberBanned {
member: String,
},
MemberUnbanned {
member: String,
},
MemberKicked {
member: String,
},
ChannelCreated {
channel: ChannelInfo,
},
ChannelUpdated {
old: ChannelInfo,
new: ChannelInfo,
},
ChannelDeleted {
channel: ChannelInfo,
},
CategoryCreated {
category: CategoryInfo,
},
CategoryUpdated {
old: CategoryInfo,
new: CategoryInfo,
},
CategoryDeleted {
category: CategoryInfo,
},
LayoutChanged,
OverwriteChanged {
scope_id: String,
target: OverwriteTarget,
allow: Permissions,
deny: Permissions,
},
ChannelSynced {
channel_id: String,
category_id: Option<String>,
},
PinsChanged {
channel_id: String,
},
TimedOut {
member: String,
until: u64,
},
TimeoutEnded {
member: String,
},
NicknameChanged {
member: String,
nickname: Option<String>,
},
}Expand description
What changed. Members are npubs, every other id is lowercase hex.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Renamed
DescriptionChanged
IconChanged
The icon’s new image URL, None when removed.
BannerChanged
RelaysChanged
VoiceRelaysChanged
EveryoneChanged
What every member holds before any Role; None before Roles v2.
RoleCreated
RoleUpdated
Its name, colour, permissions or display changed. A move in the order is RolesReordered.
RoleDeleted
RolesReordered
The Role order changed; order is every Role id, top first.
MemberRolesChanged
MemberBanned
MemberUnbanned
MemberKicked
ChannelCreated
Fields
§
channel: ChannelInfoChannelUpdated
ChannelDeleted
Fields
§
channel: ChannelInfoCategoryCreated
Fields
§
category: CategoryInfoCategoryUpdated
CategoryDeleted
Fields
§
category: CategoryInfoLayoutChanged
The sidebar order of Channels and Categories changed.
OverwriteChanged
A Channel’s or Category’s overwrite for one target. Both empty: it was removed.
ChannelSynced
A Channel now takes its Category’s overwrites (Some), or its own again (None).
PinsChanged
TimedOut
until is unix seconds.
TimeoutEnded
Lifted early (with by), or lapsed (without). A lapse is seen at the next refresh.
NicknameChanged
None when cleared.
Trait Implementations§
Source§impl Clone for ChangeKind
impl Clone for ChangeKind
Source§impl Debug for ChangeKind
impl Debug for ChangeKind
impl Eq for ChangeKind
Source§impl PartialEq for ChangeKind
impl PartialEq for ChangeKind
Source§impl Serialize for ChangeKind
impl Serialize for ChangeKind
impl StructuralPartialEq for ChangeKind
Auto Trait Implementations§
impl Forget for ChangeKind
impl Freeze for ChangeKind
impl Move for ChangeKind
impl RefUnwindSafe for ChangeKind
impl Send for ChangeKind
impl Sync for ChangeKind
impl Unpin for ChangeKind
impl UnsafeUnpin for ChangeKind
impl UnwindSafe for ChangeKind
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<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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more