Skip to main content

SearchGuildMessagesErrorType

Enum SearchGuildMessagesErrorType 

Source
#[non_exhaustive]
pub enum SearchGuildMessagesErrorType {
Show 18 variants AttachmentExtensionCount { count: usize, }, AttachmentExtensionEntryLength { index: usize, value: usize, }, AttachmentFilenameCount { count: usize, }, AttachmentFilenameEntryLength { index: usize, value: usize, }, AuthorIdCount { count: usize, }, ChannelIdCount { count: usize, }, ContentLength { value: usize, }, EmbedProviderCount { count: usize, }, EmbedProviderEntryLength { index: usize, value: usize, }, Limit { value: usize, }, LinkHostnameEntryLength { index: usize, value: usize, }, LinkHostnameCount { count: usize, }, MentionsCount { count: usize, }, MentionsRoleIdCount { count: usize, }, Offset { value: usize, }, RepliedToMessageIdCount { count: usize, }, RepliedToUserIdCount { count: usize, }, Slop { value: usize, },
}
Expand description

Type of SearchGuildMessagesError that occurred.

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

AttachmentExtensionCount

Number of attachment extensions is invalid.

Fields

§count: usize

Invalid count.

§

AttachmentExtensionEntryLength

Length of an attachment extension entry is invalid.

Fields

§index: usize

Index of the first invalid entry.

§value: usize

Invalid length.

§

AttachmentFilenameCount

Number of attachment filenames is invalid.

Fields

§count: usize

Invalid count.

§

AttachmentFilenameEntryLength

Length of an attachment filename entry is invalid.

Fields

§index: usize

Index of the first invalid entry.

§value: usize

Invalid length.

§

AuthorIdCount

Number of author IDs is invalid.

Fields

§count: usize

Invalid count.

§

ChannelIdCount

Number of channel IDs is invalid.

Fields

§count: usize

Invalid count.

§

ContentLength

Length of content is invalid.

Fields

§value: usize

Invalid length.

§

EmbedProviderCount

Number of embed providers is invalid.

Fields

§count: usize

Invalid count.

§

EmbedProviderEntryLength

Length of an embed provider entry is invalid.

Fields

§index: usize

Index of the first invalid entry.

§value: usize

Invalid length.

§

Limit

Number of messages to return is too small or too large.

Fields

§value: usize

Invalid value.

§

LinkHostnameEntryLength

Length of a link hostname entry is invalid.

Fields

§index: usize

Index of the first invalid entry.

§value: usize

Invalid length.

§

LinkHostnameCount

Number of link hostnames is invalid.

Fields

§count: usize

Invalid count.

§

MentionsCount

Number of mentions is invalid.

Fields

§count: usize

Invalid count.

§

MentionsRoleIdCount

Number of mention roles is invalid.

Fields

§count: usize

Invalid count.

§

Offset

Number of messages to offset by is invalid.

Fields

§value: usize

Invalid value.

§

RepliedToMessageIdCount

Number of replied messages is invalid.

Fields

§count: usize

Invalid count.

§

RepliedToUserIdCount

Number of replied users is invalid.

Fields

§count: usize

Invalid count.

§

Slop

Amount of slop is invalid.

Fields

§value: usize

Invalid value.

Trait Implementations§

Source§

impl Debug for SearchGuildMessagesErrorType

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where 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, U> Into<U> for T
where 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 T
where U: Into<T>,

Source§

type Error = !

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

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

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

Source§

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.