[−][src]Enum twilight_http::request::channel::message::EmbedValidationError
An embed is not valid.
Referenced values are used from the Discord docs.
Variants (Non-exhaustive)
The embed author's name is larger than the maximum.
Fields of AuthorNameTooLarge
chars: usize
The number of codepoints that were provided.
The embed description is larger than the maximum.
Fields of DescriptionTooLarge
chars: usize
The number of codepoints that were provided.
The combined content of all embed fields - author name, description, footer, field names and values, and title - is larger than the maximum.
Fields of EmbedTooLarge
chars: usize
The number of codepoints that were provided.
A field's name is larger than the maximum.
Fields of FieldNameTooLarge
chars: usize
The number of codepoints that were provided.
A field's value is larger than the maximum.
Fields of FieldValueTooLarge
chars: usize
The number of codepoints that were provided.
The footer text is larger than the maximum.
The title is larger than the maximum.
Fields of TitleTooLarge
chars: usize
The number of codepoints that were provided.
There are more than the maximum number of fields in the embed.
Fields of TooManyFields
amount: usize
The number of fields that were provided.
Implementations
impl EmbedValidationError
[src]
pub const AUTHOR_NAME_LENGTH: usize
[src]
The maximum embed author name length in codepoints.
pub const DESCRIPTION_LENGTH: usize
[src]
The maximum embed description length in codepoints.
pub const EMBED_TOTAL_LENGTH: usize
[src]
The maximum combined embed length in codepoints.
pub const FIELD_COUNT: usize
[src]
The maximum number of fields in an embed.
pub const FIELD_NAME_LENGTH: usize
[src]
The maximum length of an embed field name in codepoints.
pub const FIELD_VALUE_LENGTH: usize
[src]
The maximum length of an embed field value in codepoints.
pub const FOOTER_TEXT_LENGTH: usize
[src]
The maximum embed footer length in codepoints.
pub const TITLE_LENGTH: usize
[src]
The maximum embed title length in codepoints.
Trait Implementations
impl Clone for EmbedValidationError
[src]
fn clone(&self) -> EmbedValidationError
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for EmbedValidationError
[src]
impl Display for EmbedValidationError
[src]
impl Error for EmbedValidationError
[src]
Auto Trait Implementations
impl RefUnwindSafe for EmbedValidationError
impl Send for EmbedValidationError
impl Sync for EmbedValidationError
impl Unpin for EmbedValidationError
impl UnwindSafe for EmbedValidationError
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,