Type Alias matrix_sdk_crypto::types::events::secret_send::SecretSendEvent

source ·
pub type SecretSendEvent = ToDeviceEvent<SecretSendContent>;
Expand description

The m.secret.send to-device event.

Aliased Type§

struct SecretSendEvent {
    pub sender: OwnedUserId,
    pub content: SecretSendContent,
    /* private fields */
}

Fields§

§sender: OwnedUserId

The sender of the to-device event.

§content: SecretSendContent

The content of the to-device event.

Implementations

source§

impl<C: EventType + Debug + Sized + Serialize> ToDeviceEvent<C>

source

pub fn new(sender: OwnedUserId, content: C) -> ToDeviceEvent<C>

Create a new ToDeviceEvent.

Trait Implementations

source§

impl<C> Debug for ToDeviceEvent<C>
where C: EventType + Debug + Sized + Serialize + Debug,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de, C> Deserialize<'de> for ToDeviceEvent<C>
where C: EventType + Debug + Sized + Deserialize<'de> + Serialize,

source§

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<C> Serialize for ToDeviceEvent<C>
where C: EventType + Debug + Sized + Serialize,

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more