pub enum TapMessage {
Show 23 variants
AddAgents(AddAgents),
Authorize(Authorize),
AuthorizationRequired(AuthorizationRequired),
BasicMessage(BasicMessage),
Cancel(Cancel),
ConfirmRelationship(ConfirmRelationship),
Connect(Connect),
DIDCommPresentation(DIDCommPresentation),
Error(ErrorBody),
OutOfBand(OutOfBand),
Payment(Payment),
Presentation(Presentation),
Reject(Reject),
RemoveAgent(RemoveAgent),
ReplaceAgent(ReplaceAgent),
RequestPresentation(RequestPresentation),
Revert(Revert),
Settle(Settle),
Transfer(Transfer),
TrustPing(TrustPing),
TrustPingResponse(TrustPingResponse),
UpdateParty(UpdateParty),
UpdatePolicies(UpdatePolicies),
}Expand description
Enum encompassing all TAP message types
Variants§
AddAgents(AddAgents)
Add agents message (TAIP-5)
Authorize(Authorize)
Authorize message (TAIP-8)
AuthorizationRequired(AuthorizationRequired)
Authorization required message (TAIP-2)
BasicMessage(BasicMessage)
Basic message (DIDComm 2.0)
Cancel(Cancel)
Cancel message (TAIP-11)
ConfirmRelationship(ConfirmRelationship)
Confirm relationship message (TAIP-14)
Connect(Connect)
Connect message (TAIP-2)
DIDCommPresentation(DIDCommPresentation)
DIDComm presentation message
Error(ErrorBody)
Error message
OutOfBand(OutOfBand)
Out of band message (TAIP-2)
Payment(Payment)
Payment message (TAIP-13)
Presentation(Presentation)
Presentation message (TAIP-6)
Reject(Reject)
Reject message (TAIP-10)
RemoveAgent(RemoveAgent)
Remove agent message (TAIP-5)
ReplaceAgent(ReplaceAgent)
Replace agent message (TAIP-5)
RequestPresentation(RequestPresentation)
Request presentation message (TAIP-6)
Revert(Revert)
Revert message (TAIP-12)
Settle(Settle)
Settle message (TAIP-9)
Transfer(Transfer)
Transfer message (TAIP-3)
TrustPing(TrustPing)
Trust Ping message (DIDComm 2.0)
TrustPingResponse(TrustPingResponse)
Trust Ping Response message (DIDComm 2.0)
UpdateParty(UpdateParty)
Update party message (TAIP-4)
UpdatePolicies(UpdatePolicies)
Update policies message (TAIP-7)
Implementations§
Source§impl TapMessage
impl TapMessage
Sourcepub fn from_plain_message(plain_msg: &PlainMessage) -> Result<Self>
pub fn from_plain_message(plain_msg: &PlainMessage) -> Result<Self>
Convert a PlainMessage into the appropriate TapMessage variant based on the message type field
Sourcepub fn message_type(&self) -> &'static str
pub fn message_type(&self) -> &'static str
Get the message type string for this TapMessage
Trait Implementations§
Source§impl Clone for TapMessage
impl Clone for TapMessage
Source§fn clone(&self) -> TapMessage
fn clone(&self) -> TapMessage
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for TapMessage
impl Debug for TapMessage
Source§impl<'de> Deserialize<'de> for TapMessage
impl<'de> Deserialize<'de> for TapMessage
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>,
Source§impl Serialize for TapMessage
impl Serialize for TapMessage
Source§impl<T: TapMessageBody> TryFrom<PlainMessage<T>> for TapMessagewhere
TapMessage: From<T>,
Helper to convert between typed messages and TapMessage enum
impl<T: TapMessageBody> TryFrom<PlainMessage<T>> for TapMessagewhere
TapMessage: From<T>,
Helper to convert between typed messages and TapMessage enum