Type Alias DummyEvent

Source
pub type DummyEvent = ToDeviceEvent<DummyEventContent>;
Expand description

The m.dummy to-device event.

Aliased Type§

struct DummyEvent {
    pub sender: OwnedUserId,
    pub content: DummyEventContent,
    /* private fields */
}

Fields§

§sender: OwnedUserId

The sender of the to-device event.

§content: DummyEventContent

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