Struct ruma::events::key::verification::key::KeyVerificationKeyEventContent
source · [−]pub struct KeyVerificationKeyEventContent {
pub key: Base64<Standard, Vec<u8, Global>>,
pub relates_to: Relation,
}
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: Relation
Information about the related event.
Implementations
Trait Implementations
sourceimpl Clone for KeyVerificationKeyEventContent
impl Clone for KeyVerificationKeyEventContent
sourcefn clone(&self) -> KeyVerificationKeyEventContent
fn clone(&self) -> KeyVerificationKeyEventContent
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl<'de> Deserialize<'de> for KeyVerificationKeyEventContent
impl<'de> Deserialize<'de> for KeyVerificationKeyEventContent
sourcefn 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
sourceimpl EventContent for KeyVerificationKeyEventContent
impl EventContent for KeyVerificationKeyEventContent
type EventType = MessageLikeEventType
type EventType = MessageLikeEventType
The Rust enum for the event kind’s known types.
sourcefn event_type(
&self
) -> <KeyVerificationKeyEventContent as EventContent>::EventType
fn event_type(
&self
) -> <KeyVerificationKeyEventContent as EventContent>::EventType
Get the event’s type, like
m.room.message
.sourceimpl From<KeyVerificationKeyEventContent> for AnyMessageLikeEventContent
impl From<KeyVerificationKeyEventContent> for AnyMessageLikeEventContent
sourcefn from(c: KeyVerificationKeyEventContent) -> AnyMessageLikeEventContent
fn from(c: KeyVerificationKeyEventContent) -> AnyMessageLikeEventContent
Converts to this type from the input type.
sourceimpl RedactContent for KeyVerificationKeyEventContent
impl RedactContent for KeyVerificationKeyEventContent
type Redacted = RedactedKeyVerificationKeyEventContent
type Redacted = RedactedKeyVerificationKeyEventContent
The redacted form of the event’s content.
sourcefn 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 moresourceimpl Serialize for KeyVerificationKeyEventContent
impl Serialize for KeyVerificationKeyEventContent
sourcefn 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
impl MessageLikeEventContent for KeyVerificationKeyEventContent
Auto Trait Implementations
impl RefUnwindSafe for KeyVerificationKeyEventContent
impl Send for KeyVerificationKeyEventContent
impl Sync for KeyVerificationKeyEventContent
impl Unpin for KeyVerificationKeyEventContent
impl UnwindSafe for KeyVerificationKeyEventContent
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more