pub enum ValidationErrorType {
Show 23 variants
AuditReason {
len: usize,
},
CreateGuildBanDeleteMessageDays {
days: u16,
},
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.
CreateGuildBanDeleteMessageDays
Fields
days: u16
Invalid days.
Provided create guild ban delete message days 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
Provided username was invalid.
WebhookUsername
Provided webhook username was invalid.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ValidationErrorType
impl Send for ValidationErrorType
impl Sync for ValidationErrorType
impl Unpin for ValidationErrorType
impl UnwindSafe for ValidationErrorType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
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
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more