pub enum Change {
Show 79 variants Actions { old: Option<Vec<Action, Global>>, new: Option<Vec<Action, Global>>, }, AfkChannelId { old: Option<ChannelId>, new: Option<ChannelId>, }, AfkTimeout { old: Option<u64>, new: Option<u64>, }, Allow { old: Option<Permissions>, new: Option<Permissions>, }, ApplicationId { old: Option<ApplicationId>, new: Option<ApplicationId>, }, Archived { old: Option<bool>, new: Option<bool>, }, Asset { old: Option<String>, new: Option<String>, }, AutoArchiveDuration { old: Option<u64>, new: Option<u64>, }, Available { old: Option<bool>, new: Option<bool>, }, AvatarHash { old: Option<String>, new: Option<String>, }, BannerHash { old: Option<String>, new: Option<String>, }, Bitrate { old: Option<u64>, new: Option<u64>, }, ChannelId { old: Option<ChannelId>, new: Option<ChannelId>, }, Code { old: Option<String>, new: Option<String>, }, Colour { old: Option<u64>, new: Option<u64>, }, CommunicationDisabledUntil { old: Option<Timestamp>, new: Option<Timestamp>, }, Deaf { old: Option<bool>, new: Option<bool>, }, DefaultAutoArchiveDuration { old: Option<u64>, new: Option<u64>, }, DefaultMessageNotifications { old: Option<DefaultMessageNotificationLevel>, new: Option<DefaultMessageNotificationLevel>, }, Deny { old: Option<Permissions>, new: Option<Permissions>, }, Description { old: Option<String>, new: Option<String>, }, DiscoverySplashHash { old: Option<String>, new: Option<String>, }, Enabled { old: Option<bool>, new: Option<bool>, }, EnableEmoticons { old: Option<bool>, new: Option<bool>, }, EntityType { old: Option<u64>, new: Option<u64>, }, EventType { old: Option<EventType>, new: Option<EventType>, }, ExemptChannels { old: Option<Vec<ChannelId, Global>>, new: Option<Vec<ChannelId, Global>>, }, ExemptRoles { old: Option<Vec<RoleId, Global>>, new: Option<Vec<RoleId, Global>>, }, ExpireBehavior { old: Option<u64>, new: Option<u64>, }, ExpireGracePeriod { old: Option<u64>, new: Option<u64>, }, ExplicitContentFilter { old: Option<ExplicitContentFilter>, new: Option<ExplicitContentFilter>, }, FormatType { old: Option<StickerFormatType>, new: Option<StickerFormatType>, }, GuildId { old: Option<GuildId>, new: Option<GuildId>, }, Hoist { old: Option<bool>, new: Option<bool>, }, IconHash { old: Option<String>, new: Option<String>, }, ImageHash { old: Option<String>, new: Option<String>, }, Id { old: Option<GenericId>, new: Option<GenericId>, }, Invitable { old: Option<bool>, new: Option<bool>, }, InviterId { old: Option<UserId>, new: Option<UserId>, }, Location { old: Option<String>, new: Option<String>, }, Locked { old: Option<bool>, new: Option<bool>, }, MaxAge { old: Option<u64>, new: Option<u64>, }, MaxUses { old: Option<u64>, new: Option<u64>, }, Mentionable { old: Option<bool>, new: Option<bool>, }, MfaLevel { old: Option<MfaLevel>, new: Option<MfaLevel>, }, Mute { old: Option<bool>, new: Option<bool>, }, Name { old: Option<String>, new: Option<String>, }, Nick { old: Option<String>, new: Option<String>, }, Nsfw { old: Option<bool>, new: Option<bool>, }, OwnerId { old: Option<UserId>, new: Option<UserId>, }, PermissionOverwrites { old: Option<Vec<PermissionOverwrite, Global>>, new: Option<Vec<PermissionOverwrite, Global>>, }, Permissions { old: Option<Permissions>, new: Option<Permissions>, }, Position { old: Option<u64>, new: Option<u64>, }, PreferredLocale { old: Option<String>, new: Option<String>, }, PrivacyLevel { old: Option<u64>, new: Option<u64>, }, PruneDeleteDays { old: Option<u64>, new: Option<u64>, }, PublicUpdatesChannelId { old: Option<ChannelId>, new: Option<ChannelId>, }, RateLimitPerUser { old: Option<u64>, new: Option<u64>, }, Region { old: Option<String>, new: Option<String>, }, RolesAdded { old: Option<Vec<AffectedRole, Global>>, new: Option<Vec<AffectedRole, Global>>, }, RolesRemove { old: Option<Vec<AffectedRole, Global>>, new: Option<Vec<AffectedRole, Global>>, }, RulesChannelId { old: Option<ChannelId>, new: Option<ChannelId>, }, SplashHash { old: Option<String>, new: Option<String>, }, Status { old: Option<u64>, new: Option<u64>, }, SystemChannelId { old: Option<ChannelId>, new: Option<ChannelId>, }, Tags { old: Option<String>, new: Option<String>, }, Temporary { old: Option<bool>, new: Option<bool>, }, Topic { old: Option<String>, new: Option<String>, }, TriggerMetadata { old: Option<TriggerMetadata>, new: Option<TriggerMetadata>, }, TriggerType { old: Option<TriggerType>, new: Option<TriggerType>, }, Type { old: Option<EntityType>, new: Option<EntityType>, }, UnicodeEmoji { old: Option<String>, new: Option<String>, }, UserLimit { old: Option<u64>, new: Option<u64>, }, Uses { old: Option<u64>, new: Option<u64>, }, VanityUrlCode { old: Option<String>, new: Option<String>, }, VerificationLevel { old: Option<VerificationLevel>, new: Option<VerificationLevel>, }, WidgetChannelId { old: Option<ChannelId>, new: Option<ChannelId>, }, WidgetEnabled { old: Option<bool>, new: Option<bool>, }, Other { name: String, old: Option<Value>, new: Option<Value>, },
}

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.
§

Actions

§

AfkChannelId

AFK channel was changed.

§

AfkTimeout

Fields

AFK timeout duration was changed.

§

Allow

Permission on a text or voice channel was allowed for a role.

§

ApplicationId

Application ID of the added or removed webhook or bot.

§

Archived

Fields

Thread is now archived/unarchived.

§

Asset

Fields

§

AutoArchiveDuration

Fields

Auto archive duration of a thread was changed.

§

Available

Fields

Availability of a sticker was changed.

§

AvatarHash

Fields

User avatar was changed.

§

BannerHash

Fields

Guild banner was changed.

§

Bitrate

Fields

Voice channel bitrate was changed.

§

ChannelId

Channel for invite code or guild scheduled event was changed.

§

Code

Fields

Invite code was changed.

§

Colour

Fields

Role colour was changed.

§

CommunicationDisabledUntil

Member timeout state was changed.

§

Deaf

Fields

User was server deafened/undeafened.

§

DefaultAutoArchiveDuration

Fields

Default auto archive duration for newly created threads was changed.

§

DefaultMessageNotifications

Default message notification level for a server was changed.

§

Deny

Permission on a text or voice channel was denied for a role.

§

Description

Fields

Description for guild, sticker, or guild scheduled event was changed.

§

DiscoverySplashHash

Fields

Guild’s discovery splash was changed.

§

Enabled

Fields

§

EnableEmoticons

Fields

Integration emoticons was enabled/disabled.

§

EntityType

Fields

Entity type of guild scheduled event was changed.

§

EventType

§

ExemptChannels

§

ExemptRoles

§

ExpireBehavior

Fields

Behavior of the expiration of an integration was changed.

§

ExpireGracePeriod

Fields

Grace period of the expiration of an integration was changed.

§

ExplicitContentFilter

Explicit content filter level of a guild was changed.

§

FormatType

Format type of a sticker was changed.

§

GuildId

Fields

Guild a sticker is in was changed.

§

Hoist

Fields

Role is now displayed/no longer displayed separate from online users.

§

IconHash

Fields

Guild icon was changed.

§

ImageHash

Fields

Guild scheduled event cover image was changed.

§

Id

ID of the changed entity.

§

Invitable

Fields

Private thread’s invitable state was changed.

§

InviterId

Fields

ID of the user who created the invite.

§

Location

Fields

Location for a guild scheduled event was changed.

§

Locked

Fields

Thread was locked/unlocked.

§

MaxAge

Fields

How long invite code lasts was changed.

§

MaxUses

Fields

Maximum uses of an invite was changed.

§

Mentionable

Fields

Whether a role can be mentioned in a message was changed.

§

MfaLevel

Multi-factor authentication requirement was changed.

§

Mute

Fields

User was server muted/unmuted.

§

Name

Fields

Name of an entity was changed.

§

Nick

Fields

Nickname of a member was changed.

§

Nsfw

Fields

Channel NSFW restriction was changed.

§

OwnerId

Fields

Owner of a guild was changed.

§

PermissionOverwrites

Permissions on a channel were changed.

§

Permissions

Permissions for a role were changed.

§

Position

Fields

Channel or role position was changed.

§

PreferredLocale

Fields

Preferred locale of a guild was changed.

§

PrivacyLevel

Fields

Privacy level of the stage instance was changed.

§

PruneDeleteDays

Fields

Number of days after which inactive and role-unassigned members are kicked was changed.

§

PublicUpdatesChannelId

ID of the public updates channel was changed.

§

RateLimitPerUser

Fields

Ratelimit per user in a text channel was changed.

§

Region

Fields

Region of a guild was changed.

§

RolesAdded

Role was added to a member.

§

RolesRemove

Role was removed to a member.

§

RulesChannelId

ID of the rules channel was changed.

§

SplashHash

Fields

Invite splash page artwork was changed.

§

Status

Fields

Status of guild scheduled event was changed.

§

SystemChannelId

ID of the system channel was changed.

§

Tags

Fields

Related emoji of a sticker was changed.

§

Temporary

Fields

Whether an invite is temporary or never expires was changed.

§

Topic

Fields

Topic of a text channel or stage instance was changed.

§

TriggerMetadata

§

TriggerType

§

Type

Type of a created entity.

§

UnicodeEmoji

Fields

Unicode emoji of a role icon was changed.

§

UserLimit

Fields

Maximum number of users in a voice channel was changed.

§

Uses

Fields

Number of uses of an invite was changed.

§

VanityUrlCode

Fields

Guild invite vanity url was changed.

§

VerificationLevel

Required verification level for new members was changed.

§

WidgetChannelId

Channel of the server widget was changed.

§

WidgetEnabled

Fields

Whether a widget is enabled or not was changed.

§

Other

Fields

§name: String

Unknown key was changed.

Implementations§

source§

impl Change

source

pub fn key(&self) -> Cow<'_, str>

Trait Implementations§

source§

impl Debug for Change

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for Change

source§

fn deserialize<D>( deserializer: D ) -> Result<Change, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl PartialEq<Change> for Change

source§

fn eq(&self, other: &Change) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Serialize for Change

source§

fn serialize<S>( &self, serializer: S ) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Eq for Change

source§

impl StructuralEq for Change

source§

impl StructuralPartialEq for Change

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere T: for<'de> Deserialize<'de>,