pub struct ErrorBody {
pub code: String,
pub description: String,
pub original_message_id: Option<String>,
pub metadata: HashMap<String, Value>,
}Expand description
Error message body.
Fields§
§code: StringError code.
description: StringError description.
original_message_id: Option<String>Original message ID (if applicable).
metadata: HashMap<String, Value>Additional metadata.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ErrorBody
impl<'de> Deserialize<'de> for ErrorBody
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 TapMessageBody for ErrorBody
impl TapMessageBody for ErrorBody
Source§fn message_type() -> &'static str
fn message_type() -> &'static str
Get the message type string for this body type.
Source§fn to_didcomm(&self, from_did: Option<&str>) -> Result<Message>
fn to_didcomm(&self, from_did: Option<&str>) -> Result<Message>
Convert this body to a DIDComm message.
Source§fn to_didcomm_with_route<'a, I>(
&self,
from: Option<&str>,
to: I,
) -> Result<Message>where
I: IntoIterator<Item = &'a str>,
fn to_didcomm_with_route<'a, I>(
&self,
from: Option<&str>,
to: I,
) -> Result<Message>where
I: IntoIterator<Item = &'a str>,
Convert this body to a DIDComm message with a sender and multiple recipients. Read more
Auto Trait Implementations§
impl Freeze for ErrorBody
impl RefUnwindSafe for ErrorBody
impl Send for ErrorBody
impl Sync for ErrorBody
impl Unpin for ErrorBody
impl UnwindSafe for ErrorBody
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