pub struct GeneralError {
pub message: String,
}
Fields§
§message: String
description of the unexpected situation
Implementations§
Source§impl GeneralError
impl GeneralError
pub fn new(message: String) -> GeneralError
Trait Implementations§
Source§impl Clone for GeneralError
impl Clone for GeneralError
Source§fn clone(&self) -> GeneralError
fn clone(&self) -> GeneralError
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 GeneralError
impl Debug for GeneralError
Source§impl<'de> Deserialize<'de> for GeneralError
impl<'de> Deserialize<'de> for GeneralError
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 GeneralError
Converts Query Parameters representation (style=form, explode=false) to a GeneralError value
as specified in https://swagger.io/docs/specification/serialization/
Should be implemented in a serde deserializer
impl FromStr for GeneralError
Converts Query Parameters representation (style=form, explode=false) to a GeneralError value as specified in https://swagger.io/docs/specification/serialization/ Should be implemented in a serde deserializer
Source§impl PartialEq for GeneralError
impl PartialEq for GeneralError
Source§impl Serialize for GeneralError
impl Serialize for GeneralError
Source§impl ToString for GeneralError
Converts the GeneralError 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 GeneralError
Converts the GeneralError 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 GeneralError
Auto Trait Implementations§
impl Freeze for GeneralError
impl RefUnwindSafe for GeneralError
impl Send for GeneralError
impl Sync for GeneralError
impl Unpin for GeneralError
impl UnwindSafe for GeneralError
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