pub struct OutOfBand {
pub goal_code: String,
pub goal: String,
pub service: String,
pub accept: Option<Vec<String>>,
pub handshake_protocols: Option<Vec<String>>,
pub metadata: HashMap<String, Value>,
}Expand description
Out of Band invitation for TAP connections.
Fields§
§goal_code: StringThe goal code for this invitation.
goal: StringThe goal for this invitation.
service: StringThe public DID or endpoint URL for the inviter.
accept: Option<Vec<String>>Accept media types.
handshake_protocols: Option<Vec<String>>Handshake protocols supported.
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: &str) -> Result<PlainMessage>
fn to_didcomm(&self, from: &str) -> Result<PlainMessage>
Convert this body to a DIDComm message.
Source§fn from_didcomm(message: &PlainMessage) -> Result<Self>
fn from_didcomm(message: &PlainMessage) -> Result<Self>
Extract this body type from a DIDComm message.
Source§fn to_didcomm_with_route<'a, I>(
&self,
from: &str,
to: I,
) -> Result<PlainMessage>where
I: IntoIterator<Item = &'a str>,
fn to_didcomm_with_route<'a, I>(
&self,
from: &str,
to: I,
) -> Result<PlainMessage>where
I: IntoIterator<Item = &'a str>,
Convert this body to a DIDComm message with a custom routing path. 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