Enum twilight_http::request::template::create_template::CreateTemplateError [−][src]
#[non_exhaustive] pub enum CreateTemplateError { NameInvalid { name: String, }, DescriptionTooLarge { description: String, }, }
Error returned when the template 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.
Name of the template is invalid.
Show fields
Fields of NameInvalid
name: String
Provided name.
Description of the template is invalid.
Show fields
Fields of DescriptionTooLarge
description: String
Provided description.
Trait Implementations
impl Clone for CreateTemplateError
[src]
impl Clone for CreateTemplateError
[src]fn clone(&self) -> CreateTemplateError
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
Auto Trait Implementations
impl RefUnwindSafe for CreateTemplateError
impl RefUnwindSafe for CreateTemplateError
impl Send for CreateTemplateError
impl Send for CreateTemplateError
impl Sync for CreateTemplateError
impl Sync for CreateTemplateError
impl Unpin for CreateTemplateError
impl Unpin for CreateTemplateError
impl UnwindSafe for CreateTemplateError
impl UnwindSafe for CreateTemplateError
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>,