#[non_exhaustive]pub enum EmbedValidationErrorType {
AuthorNameTooLarge {
chars: usize,
},
ColorNotRgb {
color: u32,
},
DescriptionTooLarge {
chars: usize,
},
EmbedTooLarge {
chars: usize,
},
FieldNameTooLarge {
chars: usize,
},
FieldValueTooLarge {
chars: usize,
},
FooterTextTooLarge {
chars: usize,
},
TitleTooLarge {
chars: usize,
},
TooManyFields {
amount: usize,
},
}
Expand description
Type of EmbedValidationError
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.
AuthorNameTooLarge
Embed author’s name is larger than AUTHOR_NAME_LENGTH
.
ColorNotRgb
Color is larger than a valid RGB hexadecimal value.
DescriptionTooLarge
Embed description is larger than DESCRIPTION_LENGTH
.
EmbedTooLarge
Combined content of all embed fields is larger than
EMBED_TOTAL_LENGTH
.
This includes author name, description, footer, field names and values, and title.
FieldNameTooLarge
A field’s name is larger than FIELD_NAME_LENGTH
.
FieldValueTooLarge
A field’s value is larger than FIELD_VALUE_LENGTH
.
Footer text is larger than FOOTER_TEXT_LENGTH
.
TitleTooLarge
Title is larger than TITLE_LENGTH
.
TooManyFields
There are more than FIELD_COUNT
number of fields in the embed.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EmbedValidationErrorType
impl RefUnwindSafe for EmbedValidationErrorType
impl Send for EmbedValidationErrorType
impl Sync for EmbedValidationErrorType
impl Unpin for EmbedValidationErrorType
impl UnwindSafe for EmbedValidationErrorType
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