pub struct BadRequest {
pub parameter: Option<String>,
pub error: Option<String>,
}
Fields§
§parameter: Option<String>
what parameter was at fault
error: Option<String>
Error description
Implementations§
Source§impl BadRequest
impl BadRequest
pub fn new() -> BadRequest
Trait Implementations§
Source§impl Clone for BadRequest
impl Clone for BadRequest
Source§fn clone(&self) -> BadRequest
fn clone(&self) -> BadRequest
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for BadRequest
impl Debug for BadRequest
Source§impl<'de> Deserialize<'de> for BadRequest
impl<'de> Deserialize<'de> for BadRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl FromStr for BadRequest
Converts Query Parameters representation (style=form, explode=false) to a BadRequest value
as specified in https://swagger.io/docs/specification/serialization/
Should be implemented in a serde deserializer
impl FromStr for BadRequest
Converts Query Parameters representation (style=form, explode=false) to a BadRequest value as specified in https://swagger.io/docs/specification/serialization/ Should be implemented in a serde deserializer
Source§impl PartialEq for BadRequest
impl PartialEq for BadRequest
Source§impl Serialize for BadRequest
impl Serialize for BadRequest
Source§impl ToString for BadRequest
Converts the BadRequest value to the Query Parameters representation (style=form, explode=false)
specified in https://swagger.io/docs/specification/serialization/
Should be implemented in a serde serializer
impl ToString for BadRequest
Converts the BadRequest value to the Query Parameters representation (style=form, explode=false) specified in https://swagger.io/docs/specification/serialization/ Should be implemented in a serde serializer
impl StructuralPartialEq for BadRequest
Auto Trait Implementations§
impl Freeze for BadRequest
impl RefUnwindSafe for BadRequest
impl Send for BadRequest
impl Sync for BadRequest
impl Unpin for BadRequest
impl UnwindSafe for BadRequest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more