pub enum MessageType {
Show 19 variants
Transfer,
Payment,
Presentation,
Authorize,
Reject,
Settle,
Cancel,
Revert,
AddAgents,
ReplaceAgent,
RemoveAgent,
UpdatePolicies,
UpdateParty,
ConfirmRelationship,
Connect,
AuthorizationRequired,
Complete,
Error,
Unknown,
}
Expand description
The type of TAP Messages following the TAP specification
Variants§
Transfer
Transaction proposal (TAIP-3)
Payment
Payment request message (TAIP-14)
Presentation
Presentation message (TAIP-8)
Authorize
Authorization response (TAIP-4)
Reject
Rejection response (TAIP-4)
Settle
Settlement notification (TAIP-4)
Cancel
Cancellation message (TAIP-4)
Revert
Revert request (TAIP-4)
AddAgents
Add agents to transaction (TAIP-5)
ReplaceAgent
Replace an agent (TAIP-5)
RemoveAgent
Remove an agent (TAIP-5)
UpdatePolicies
Update policies (TAIP-7)
UpdateParty
Update party information (TAIP-6)
ConfirmRelationship
Confirm relationship (TAIP-9)
Connect
Connect request (TAIP-15)
AuthorizationRequired
Authorization required response (TAIP-15)
Complete
Complete message (TAIP-14)
Error
Error message
Unknown
Unknown message type
Trait Implementations§
Source§impl Clone for MessageType
impl Clone for MessageType
Source§fn clone(&self) -> MessageType
fn clone(&self) -> MessageType
Returns a duplicate 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 MessageType
impl Debug for MessageType
Source§impl Display for MessageType
impl Display for MessageType
Source§impl From<&str> for MessageType
impl From<&str> for MessageType
Source§impl From<MessageType> for JsValue
impl From<MessageType> for JsValue
Source§fn from(value: MessageType) -> Self
fn from(value: MessageType) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for MessageType
impl FromWasmAbi for MessageType
Source§impl IntoWasmAbi for MessageType
impl IntoWasmAbi for MessageType
Source§impl OptionFromWasmAbi for MessageType
impl OptionFromWasmAbi for MessageType
Source§impl OptionIntoWasmAbi for MessageType
impl OptionIntoWasmAbi for MessageType
Source§impl PartialEq for MessageType
impl PartialEq for MessageType
Source§impl TryFromJsValue for MessageType
impl TryFromJsValue for MessageType
Source§fn try_from_js_value(
value: JsValue,
) -> Result<Self, <MessageType as TryFromJsValue>::Error>
fn try_from_js_value( value: JsValue, ) -> Result<Self, <MessageType as TryFromJsValue>::Error>
Performs the conversion.
Source§impl VectorFromWasmAbi for MessageType
impl VectorFromWasmAbi for MessageType
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[MessageType]>
Source§impl VectorIntoJsValue for MessageType
impl VectorIntoJsValue for MessageType
fn vector_into_jsvalue(vector: Box<[MessageType]>) -> JsValue
Source§impl VectorIntoWasmAbi for MessageType
impl VectorIntoWasmAbi for MessageType
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[MessageType]>) -> Self::Abi
Source§impl WasmDescribeVector for MessageType
impl WasmDescribeVector for MessageType
impl Copy for MessageType
impl StructuralPartialEq for MessageType
Auto Trait Implementations§
impl Freeze for MessageType
impl RefUnwindSafe for MessageType
impl Send for MessageType
impl Sync for MessageType
impl Unpin for MessageType
impl UnwindSafe for MessageType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::Abi
Source§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi
, except that it may throw and never
return in the case of Err
.