Enum axum_yaml::rejection::YamlRejection
source · #[non_exhaustive]pub enum YamlRejection {
YamlError(YamlError),
MissingYamlContentType(MissingYamlContentType),
BytesRejection(BytesRejection),
}
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.
Implementations§
source§impl YamlRejection
impl YamlRejection
Trait Implementations§
source§impl Debug for YamlRejection
impl Debug for YamlRejection
source§impl Display for YamlRejection
impl Display for YamlRejection
source§impl Error for YamlRejection
impl Error for YamlRejection
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<BytesRejection> for YamlRejection
impl From<BytesRejection> for YamlRejection
source§fn from(inner: BytesRejection) -> Self
fn from(inner: BytesRejection) -> Self
Converts to this type from the input type.
source§impl From<MissingYamlContentType> for YamlRejection
impl From<MissingYamlContentType> for YamlRejection
source§fn from(inner: MissingYamlContentType) -> Self
fn from(inner: MissingYamlContentType) -> Self
Converts to this type from the input type.
source§impl From<YamlError> for YamlRejection
impl From<YamlError> for YamlRejection
source§impl IntoResponse for YamlRejection
impl IntoResponse for YamlRejection
source§fn into_response(self) -> Response
fn into_response(self) -> Response
Create a response.
Auto Trait Implementations§
impl !RefUnwindSafe for YamlRejection
impl Send for YamlRejection
impl Sync for YamlRejection
impl Unpin for YamlRejection
impl !UnwindSafe for YamlRejection
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