Enum twilight_http::request::channel::message::create_message::CreateMessageError [−][src]
#[non_exhaustive] pub enum CreateMessageError { ContentInvalid { content: String, }, EmbedTooLarge { embed: Box<Embed>, source: EmbedValidationError, }, }
The error created when a messsage can not be created as configured.
Variants (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.
Returned when the content is over 2000 UTF-16 characters.
Show fields
Fields of ContentInvalid
content: String
Provided content.
Returned when the length of the embed is over 6000 characters.
Show fields
Fields of EmbedTooLarge
Trait Implementations
impl Clone for CreateMessageError
[src]
impl Clone for CreateMessageError
[src]fn clone(&self) -> CreateMessageError
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
Auto Trait Implementations
impl RefUnwindSafe for CreateMessageError
impl RefUnwindSafe for CreateMessageError
impl Send for CreateMessageError
impl Send for CreateMessageError
impl Sync for CreateMessageError
impl Sync for CreateMessageError
impl Unpin for CreateMessageError
impl Unpin for CreateMessageError
impl UnwindSafe for CreateMessageError
impl UnwindSafe for CreateMessageError
Blanket Implementations
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,