Struct ruma::events::key::verification::key::KeyVerificationKeyEventContent
source · pub struct KeyVerificationKeyEventContent {
pub key: Base64<Standard, Vec<u8, Global>>,
pub relates_to: Reference,
}
Available on crate feature
events
only.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<Standard, Vec<u8, Global>>
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<KeyVerificationKeyEventContent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<KeyVerificationKeyEventContent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl EventContent for KeyVerificationKeyEventContent
impl EventContent for KeyVerificationKeyEventContent
§type EventType = MessageLikeEventType
type EventType = MessageLikeEventType
The Rust enum for the event kind’s known types.
source§fn event_type(
&self
) -> <KeyVerificationKeyEventContent as EventContent>::EventType
fn event_type(
&self
) -> <KeyVerificationKeyEventContent as EventContent>::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) -> AnyMessageLikeEventContent
fn from(c: KeyVerificationKeyEventContent) -> AnyMessageLikeEventContent
Converts to this type from the input type.
source§impl RedactContent for KeyVerificationKeyEventContent
impl RedactContent for KeyVerificationKeyEventContent
§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 moresource§impl Serialize for KeyVerificationKeyEventContent
impl Serialize for KeyVerificationKeyEventContent
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more