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§
§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 EventContent for KeyVerificationKeyEventContent
impl EventContent for KeyVerificationKeyEventContent
Source§type EventType = MessageLikeEventType
type EventType = MessageLikeEventType
The Rust enum for the event kind’s known types.
Source§fn event_type(&self) -> Self::EventType
fn event_type(&self) -> Self::EventType
Get the event’s type, like
m.room.message
.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 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,
version: &RoomVersionId,
) -> RedactedKeyVerificationKeyEventContent
fn redact( self, version: &RoomVersionId, ) -> RedactedKeyVerificationKeyEventContent
Transform
self
into a redacted form (removing most or all fields) according to the spec. Read moreimpl MessageLikeEventContent for KeyVerificationKeyEventContent
Auto 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