Struct ruma_events::key::verification::cancel::CancelToDeviceEventContent [−][src]
pub struct CancelToDeviceEventContent { pub transaction_id: String, pub reason: String, pub code: CancelCode, }
Expand description
The payload for a to-device CancelEvent
.
Fields
transaction_id: String
The opaque identifier for the verification process/request.
reason: String
A human readable description of the code
.
The client should only rely on this string if it does not understand the code
.
code: CancelCode
The error code for why the process / request was cancelled by the user.
Implementations
Creates a new CancelToDeviceEventContent
with the given transaction ID, reason and code.
Trait Implementations
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
A matrix event identifier, like m.room.message
.
Constructs the given event content.
Auto Trait Implementations
impl RefUnwindSafe for CancelToDeviceEventContent
impl Send for CancelToDeviceEventContent
impl Sync for CancelToDeviceEventContent
impl Unpin for CancelToDeviceEventContent
impl UnwindSafe for CancelToDeviceEventContent
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more