Enum twilight_embed_builder::EmbedErrorType [−][src]
#[non_exhaustive] pub enum EmbedErrorType {}Show variants
AuthorNameEmpty { name: String, }, AuthorNameTooLong { name: String, }, ColorNotRgb { color: u32, }, ColorZero, DescriptionEmpty { description: String, }, DescriptionTooLong { description: String, }, FieldNameEmpty { name: String, value: String, }, FieldNameTooLong { name: String, value: String, }, FieldValueEmpty { name: String, value: String, }, FieldValueTooLong { name: String, value: String, }, FooterTextEmpty { text: String, }, FooterTextTooLong { text: String, }, TitleEmpty { title: String, }, TitleTooLong { title: String, }, TotalContentTooLarge { length: usize, }, TooManyFields { fields: Vec<EmbedField>, },
Expand description
Type of EmbedError
that occurred.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Name is empty.
Show fields
Fields of AuthorNameEmpty
name: String
Provided name. Although empty, the same owned allocation is included.
Name is longer than 256 UTF-16 code points.
Show fields
Fields of AuthorNameTooLong
name: String
Provided name.
Color was larger than a valid RGB hexadecimal value.
Show fields
Fields of ColorNotRgb
color: u32
Provided color hex value.
Color was 0. The value would be thrown out by Discord and is equivalent to null.
Description is empty.
Show fields
Fields of DescriptionEmpty
description: String
Provided description. Although empty, the same owned allocation is included.
Description is longer than 4096 UTF-16 code points.
Show fields
Fields of DescriptionTooLong
description: String
Provided description.
Name is empty.
Show fields
Name is longer than 256 UTF-16 code points.
Value is empty.
Show fields
Value is longer than 1024 UTF-16 code points.
Footer text is empty.
Show fields
Footer text is longer than 2048 UTF-16 code points.
Show fields
Title is empty.
Show fields
Fields of TitleEmpty
title: String
Provided title. Although empty, the same owned allocation is included.
Title is longer than 256 UTF-16 code points.
Show fields
Fields of TitleTooLong
title: String
Provided title.
The total content of the embed is too large.
Refer to EmbedBuilder::EMBED_LENGTH_LIMIT
for more information about
what goes into this limit.
Show fields
Fields of TotalContentTooLarge
length: usize
The total length of the embed.
Too many fields were provided.
Refer to EmbedBuilder::EMBED_FIELD_LIMIT
for more information about
what the limit is.
Show fields
Fields of TooManyFields
fields: Vec<EmbedField>
The provided fields.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for EmbedErrorType
impl Send for EmbedErrorType
impl Sync for EmbedErrorType
impl Unpin for EmbedErrorType
impl UnwindSafe for EmbedErrorType