pub enum ValidationErrorType {
Show 24 variants AuditReason { len: usize, }, AutoModerationMetadataMentionTotalLimit { limit: u8, }, CreateGuildBanDeleteMessageSeconds { seconds: u32, }, CommunicationDisabledUntil { timestamp: Timestamp, }, GetChannelMessages { limit: u16, }, GetCurrentUserGuilds { limit: u16, }, GetGuildAuditLog { limit: u16, }, GetGuildBans { limit: u16, }, GetGuildMembers { limit: u16, }, GetReactions { limit: u16, }, GuildName { len: usize, }, GuildPruneDays { days: u16, }, InviteMaxAge { max_age: u32, }, InviteMaxUses { max_uses: u16, }, Nickname { len: usize, }, ScheduledEventDescription { len: usize, }, ScheduledEventGetUsers { limit: u16, }, ScheduledEventName { len: usize, }, SearchGuildMembers { limit: u16, }, StageTopic { len: usize, }, TemplateDescription { len: usize, }, TemplateName { len: usize, }, Username { len: Option<usize>, substring: Option<&'static str>, }, WebhookUsername { len: Option<usize>, substring: Option<&'static str>, },
}
Expand description

Type of ValidationError that occurred.

Variants

AuditReason

Fields

len: usize

Invalid length.

Provided audit reason was too large.

AutoModerationMetadataMentionTotalLimit

Fields

limit: u8

Invalid limit.

Provided limit was too large.

CreateGuildBanDeleteMessageSeconds

Fields

seconds: u32

Invalid seconds.

Provided create guild ban delete message seconds was invalid.

CommunicationDisabledUntil

Fields

timestamp: Timestamp

Invalid timestamp.

Provided timestamp is too far in the future.

GetChannelMessages

Fields

limit: u16

Invalid limit.

Provided get channel messages limit was invalid.

GetCurrentUserGuilds

Fields

limit: u16

Invalid limit.

Provided get current user guilds limit was invalid.

GetGuildAuditLog

Fields

limit: u16

Invalid limit.

Provided get guild audit log limit was invalid.

GetGuildBans

Fields

limit: u16

Invalid limit.

Provided get guild bans limit was invalid.

GetGuildMembers

Fields

limit: u16

Invalid limit.

Provided get guild members limit was invalid.

GetReactions

Fields

limit: u16

Invalid limit.

Provided get reactions limit was invalid.

GuildName

Fields

len: usize

Invalid length.

Provided guild name was invalid.

GuildPruneDays

Fields

days: u16

Invalid days.

Provided guild prune days was invalid.

InviteMaxAge

Fields

max_age: u32

Invalid age.

Provided invite max age was invalid.

InviteMaxUses

Fields

max_uses: u16

Invalid age.

Provided invite max uses was invalid.

Nickname

Fields

len: usize

Invalid length.

Provided nickname length was invalid.

ScheduledEventDescription

Fields

len: usize

Invalid length.

Scheduled event description is invalid.

ScheduledEventGetUsers

Fields

limit: u16

Invalid limit.

Scheduled event get users limit is invalid.

ScheduledEventName

Fields

len: usize

Invalid length.

Scheduled event name is invalid.

SearchGuildMembers

Fields

limit: u16

Invalid limit.

Provided search guild members limit was invalid.

StageTopic

Fields

len: usize

Invalid length.

Provided stage instance topic was invalid.

TemplateDescription

Fields

len: usize

Invalid length.

Provided guild template description was invalid.

TemplateName

Fields

len: usize

Invalid length.

Provided guild template name was invalid.

Username

Fields

len: Option<usize>

Invalid length.

substring: Option<&'static str>

Invalid substring.

Provided username was invalid.

WebhookUsername

Fields

len: Option<usize>

Invalid length.

substring: Option<&'static str>

Invalid substring.

Provided webhook username was invalid.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

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

Calls U::from(self).

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

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more