pub struct InvokeResultError {
pub app: String,
pub operation: String,
pub status: Option<u16>,
pub code: Option<String>,
pub message: String,
pub body: Option<Box<Value>>,
pub raw_body: Vec<u8>,
}Expand description
Decoded app invocation payload failure: an HTTP-error status, an error envelope, or an undecodable result body.
Fields§
§app: StringThe invoked app.
operation: StringThe invoked operation.
status: Option<u16>The HTTP status when the result carried one.
code: Option<String>The error envelope’s code when present.
message: StringThe failure message.
body: Option<Box<Value>>The decoded result body when it parsed as JSON.
raw_body: Vec<u8>The raw result body bytes.
Trait Implementations§
Source§impl Clone for InvokeResultError
impl Clone for InvokeResultError
Source§fn clone(&self) -> InvokeResultError
fn clone(&self) -> InvokeResultError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 InvokeResultError
impl Debug for InvokeResultError
Source§impl Display for InvokeResultError
impl Display for InvokeResultError
Source§impl Error for InvokeResultError
impl Error for InvokeResultError
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()
Auto Trait Implementations§
impl Freeze for InvokeResultError
impl RefUnwindSafe for InvokeResultError
impl Send for InvokeResultError
impl Sync for InvokeResultError
impl Unpin for InvokeResultError
impl UnsafeUnpin for InvokeResultError
impl UnwindSafe for InvokeResultError
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> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request