pub struct OutOfBand {
pub goal_code: Option<String>,
pub goal: Option<String>,
pub attachments: Vec<Attachment>,
pub accept: Option<Vec<String>>,
pub handshake_protocols: Option<Vec<String>>,
pub metadata: HashMap<String, Value>,
}Expand description
OutOfBand message body
Fields§
§goal_code: Option<String>Goal code for the out-of-band message
goal: Option<String>Human-readable goal for the out-of-band message
attachments: Vec<Attachment>Array of attachments
accept: Option<Vec<String>>Accept property for the out-of-band message
handshake_protocols: Option<Vec<String>>Handshake protocols
metadata: HashMap<String, Value>Additional metadata
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for OutOfBand
impl<'de> Deserialize<'de> for OutOfBand
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 OutOfBand
impl TapMessageBody for OutOfBand
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 OutOfBand
impl RefUnwindSafe for OutOfBand
impl Send for OutOfBand
impl Sync for OutOfBand
impl Unpin for OutOfBand
impl UnwindSafe for OutOfBand
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