Struct ruma_events::room::message::KeyVerificationRequestEventContent [−][src]
pub struct KeyVerificationRequestEventContent { pub body: String, pub methods: Vec<VerificationMethod>, pub from_device: DeviceIdBox, pub to: UserId, }
unstable-pre-spec
only.Expand description
The payload for a key verification request message.
Fields
body: String
A fallback message to alert users that their client does not support the key verification framework.
methods: Vec<VerificationMethod>
The verification methods supported by the sender.
from_device: DeviceIdBox
The device ID which is initiating the request.
to: UserId
The user ID which should receive the request.
Users should only respond to verification requests if they are named in this field. Users
who are not named in this field and who did not send this event should ignore all other
events that have a m.reference
relationship with this event.
Implementations
pub fn new(
body: String,
methods: Vec<VerificationMethod>,
from_device: DeviceIdBox,
to: UserId
) -> Self
pub fn new(
body: String,
methods: Vec<VerificationMethod>,
from_device: DeviceIdBox,
to: UserId
) -> Self
Creates a new KeyVerificationRequestEventContent
with the given body, method, device and
user 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
Auto Trait Implementations
impl Send for KeyVerificationRequestEventContent
impl Sync for KeyVerificationRequestEventContent
impl Unpin for KeyVerificationRequestEventContent
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V