#[non_exhaustive]pub struct KeyVerificationKeyEventContent {
pub key: Base64,
pub relates_to: Reference,
}
Expand description
The content of an in-room m.key.verification.key
event.
Sends the ephemeral public key for a device to the partner device.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.key: Base64
The device’s ephemeral public key, encoded as unpadded base64.
relates_to: Reference
Information about the related event.
Implementations§
Trait Implementations§
Source§impl Clone for KeyVerificationKeyEventContent
impl Clone for KeyVerificationKeyEventContent
Source§fn clone(&self) -> KeyVerificationKeyEventContent
fn clone(&self) -> KeyVerificationKeyEventContent
Returns a copy 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<'de> Deserialize<'de> for KeyVerificationKeyEventContent
impl<'de> Deserialize<'de> for KeyVerificationKeyEventContent
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<KeyVerificationKeyEventContent> for AnyMessageLikeEventContent
impl From<KeyVerificationKeyEventContent> for AnyMessageLikeEventContent
Source§fn from(c: KeyVerificationKeyEventContent) -> Self
fn from(c: KeyVerificationKeyEventContent) -> Self
Converts to this type from the input type.
Source§impl MessageLikeEventContent for KeyVerificationKeyEventContent
impl MessageLikeEventContent for KeyVerificationKeyEventContent
Source§fn event_type(&self) -> MessageLikeEventType
fn event_type(&self) -> MessageLikeEventType
Get the event’s type, like
m.room.message
.Source§impl RedactContent for KeyVerificationKeyEventContent
impl RedactContent for KeyVerificationKeyEventContent
Source§type Redacted = RedactedKeyVerificationKeyEventContent
type Redacted = RedactedKeyVerificationKeyEventContent
The redacted form of the event’s content.
Source§fn redact(
self,
_rules: &RedactionRules,
) -> RedactedKeyVerificationKeyEventContent
fn redact( self, _rules: &RedactionRules, ) -> RedactedKeyVerificationKeyEventContent
Transform
self
into a redacted form (removing most or all fields) according to the spec. Read moreAuto Trait Implementations§
impl Freeze for KeyVerificationKeyEventContent
impl RefUnwindSafe for KeyVerificationKeyEventContent
impl Send for KeyVerificationKeyEventContent
impl Sync for KeyVerificationKeyEventContent
impl Unpin for KeyVerificationKeyEventContent
impl UnwindSafe for KeyVerificationKeyEventContent
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