pub struct Meta {
pub name: String,
pub message: String,
pub error: Option<Box<dyn Error>>,
}
Fields§
§name: String
§message: String
§error: Option<Box<dyn Error>>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Meta
impl<'de> Deserialize<'de> for Meta
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 Error for Meta
impl Error for Meta
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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<ActorError> for Meta
impl From<ActorError> for Meta
Source§fn from(error: ActorError) -> Self
fn from(error: ActorError) -> Self
Converts to this type from the input type.
Source§impl From<ClientError> for Meta
impl From<ClientError> for Meta
Source§fn from(error: ClientError) -> Self
fn from(error: ClientError) -> Self
Converts to this type from the input type.
Source§impl From<ClientError> for Meta
impl From<ClientError> for Meta
Source§fn from(error: ClientError) -> Self
fn from(error: ClientError) -> Self
Converts to this type from the input type.
Source§impl From<FromUtf16Error> for Meta
impl From<FromUtf16Error> for Meta
Source§fn from(error: FromUtf16Error) -> Self
fn from(error: FromUtf16Error) -> Self
Converts to this type from the input type.
Source§impl From<InvalidHeaderValue> for Meta
impl From<InvalidHeaderValue> for Meta
Source§fn from(error: InvalidHeaderValue) -> Self
fn from(error: InvalidHeaderValue) -> Self
Converts to this type from the input type.
Source§impl From<MultipartError> for Meta
impl From<MultipartError> for Meta
Source§fn from(error: MultipartError) -> Self
fn from(error: MultipartError) -> Self
Converts to this type from the input type.
Source§impl From<ParseIntError> for Meta
impl From<ParseIntError> for Meta
Source§fn from(error: ParseIntError) -> Self
fn from(error: ParseIntError) -> Self
Converts to this type from the input type.
Source§impl IntoResponse for Meta
impl IntoResponse for Meta
Source§fn into_response(self) -> Response
fn into_response(self) -> Response
Create a response.
impl Send for Meta
impl Sync for Meta
Auto Trait Implementations§
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<E> InstrumentError for Ewhere
TracedError<E>: From<E>,
impl<E> InstrumentError for Ewhere
TracedError<E>: From<E>,
Source§type Instrumented = TracedError<E>
type Instrumented = TracedError<E>
The type of the wrapped error after instrumentation
Source§fn in_current_span(self) -> <E as InstrumentError>::Instrumented
fn in_current_span(self) -> <E as InstrumentError>::Instrumented
Instrument an Error by bundling it with a SpanTrace Read more
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