pub struct ConfirmRelationship {
pub transaction_id: String,
pub agent_id: String,
pub for_id: String,
pub role: Option<String>,
}Expand description
ConfirmRelationship message body (TAIP-9).
This message type allows confirming a relationship between agents.
Fields§
§transaction_id: StringID of the transaction related to this message.
agent_id: StringDID of the agent whose relationship is being confirmed.
for_id: StringDID of the entity that the agent acts on behalf of.
role: Option<String>Role of the agent in the transaction (optional).
Implementations§
Trait Implementations§
Source§impl Clone for ConfirmRelationship
impl Clone for ConfirmRelationship
Source§fn clone(&self) -> ConfirmRelationship
fn clone(&self) -> ConfirmRelationship
Returns a copy of the value. Read more
1.0.0 · 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 ConfirmRelationship
impl Debug for ConfirmRelationship
Source§impl<'de> Deserialize<'de> for ConfirmRelationship
impl<'de> Deserialize<'de> for ConfirmRelationship
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 Serialize for ConfirmRelationship
impl Serialize for ConfirmRelationship
Source§impl TapMessage for ConfirmRelationship
impl TapMessage for ConfirmRelationship
Source§fn is_tap_message(&self) -> bool
fn is_tap_message(&self) -> bool
Checks if this message is a TAP message.
Source§fn get_tap_type(&self) -> Option<String>
fn get_tap_type(&self) -> Option<String>
Gets the TAP message type from this message.
Source§fn body_as<T: TapMessageBody>(&self) -> Result<T>
fn body_as<T: TapMessageBody>(&self) -> Result<T>
Extract a specific message body type from this message. Read more
Source§fn get_all_participants(&self) -> Vec<String>
fn get_all_participants(&self) -> Vec<String>
Get all participant DIDs from this message. Read more
Source§fn create_reply<T: TapMessageBody>(
&self,
body: &T,
creator_did: &str,
) -> Result<Message>
fn create_reply<T: TapMessageBody>( &self, body: &T, creator_did: &str, ) -> Result<Message>
Create a reply to this message. Read more
Source§fn message_type(&self) -> &'static str
fn message_type(&self) -> &'static str
Get the message type for this message
Source§fn parent_thread_id(&self) -> Option<&str>
fn parent_thread_id(&self) -> Option<&str>
Get the parent thread ID for this message
Source§fn message_id(&self) -> &str
fn message_id(&self) -> &str
Get the message ID for this message
Source§impl TapMessageBody for ConfirmRelationship
impl TapMessageBody for ConfirmRelationship
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 from_didcomm(message: &Message) -> Result<Self>
fn from_didcomm(message: &Message) -> Result<Self>
Extract this body type from 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 ConfirmRelationship
impl RefUnwindSafe for ConfirmRelationship
impl Send for ConfirmRelationship
impl Sync for ConfirmRelationship
impl Unpin for ConfirmRelationship
impl UnwindSafe for ConfirmRelationship
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