Struct ruma_events::key::verification::ready::ReadyToDeviceEventContent [−][src]
pub struct ReadyToDeviceEventContent { pub from_device: DeviceIdBox, pub methods: Vec<VerificationMethod>, pub transaction_id: String, }
This is supported on crate feature
unstable-pre-spec
only.Expand description
The payload for a to-device m.key.verification.ready
event.
Fields
from_device: DeviceIdBox
The device ID which is initiating the request.
methods: Vec<VerificationMethod>
The verification methods supported by the sender.
transaction_id: String
An opaque identifier for the verification process.
Must be unique with respect to the devices involved. Must be the same as the
transaction_id
given in the m.key.verification.request from a
request.
Implementations
pub fn new(
from_device: DeviceIdBox,
methods: Vec<VerificationMethod>,
transaction_id: String
) -> Self
pub fn new(
from_device: DeviceIdBox,
methods: Vec<VerificationMethod>,
transaction_id: String
) -> Self
Creates a new ReadyToDeviceEventContent
with the given device ID, verification methods and
transaction ID.
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 ReadyToDeviceEventContent
impl Send for ReadyToDeviceEventContent
impl Sync for ReadyToDeviceEventContent
impl Unpin for ReadyToDeviceEventContent
impl UnwindSafe for ReadyToDeviceEventContent
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more