pub struct OpenapiError {
pub keys: Keys,
pub message: String,
}
Fields§
§keys: Keys
§message: String
Implementations§
Source§impl OpenapiError
impl OpenapiError
pub fn new<T: ToString>(keys: Keys, message: T) -> Self
pub fn to_error_object(&self, node: &Node, mapper: &Mapper) -> ErrorObject
Trait Implementations§
Source§impl Clone for OpenapiError
impl Clone for OpenapiError
Source§fn clone(&self) -> OpenapiError
fn clone(&self) -> OpenapiError
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 OpenapiError
impl Debug for OpenapiError
Auto Trait Implementations§
impl Freeze for OpenapiError
impl !RefUnwindSafe for OpenapiError
impl !Send for OpenapiError
impl !Sync for OpenapiError
impl Unpin for OpenapiError
impl !UnwindSafe for OpenapiError
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