pub struct YamlError(/* private fields */);
Expand description
Rejection type for Yaml
that takes the serde_yaml::Error
type.
This rejection is used when the request body cannot be deserialized into the target type or contains syntactically invalid YAML.
Implementations§
Trait Implementations§
source§impl Error for YamlError
impl Error for YamlError
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<YamlError> for YamlRejection
impl From<YamlError> for YamlRejection
source§impl IntoResponse for YamlError
impl IntoResponse for YamlError
source§fn into_response(self) -> Response
fn into_response(self) -> Response
Create a response.
Auto Trait Implementations§
impl !RefUnwindSafe for YamlError
impl Send for YamlError
impl Sync for YamlError
impl Unpin for YamlError
impl !UnwindSafe for YamlError
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