ruma::events::poll::unstable_response

Type Alias UnstablePollResponseEvent

Source
pub type UnstablePollResponseEvent = MessageLikeEvent<UnstablePollResponseEventContent>;
Available on crate features events and unstable-msc3381 only.
Expand description

An org.matrix.msc3381.poll.response event.

Aliased Type§

enum UnstablePollResponseEvent {
    Original(OriginalMessageLikeEvent<UnstablePollResponseEventContent>),
    Redacted(RedactedMessageLikeEvent<RedactedUnstablePollResponseEventContent>),
}

Variants§

§

Original(OriginalMessageLikeEvent<UnstablePollResponseEventContent>)

Original, unredacted form of the event.

§

Redacted(RedactedMessageLikeEvent<RedactedUnstablePollResponseEventContent>)

Redacted form of the event with minimal fields.

Implementations

Source§

impl<C> MessageLikeEvent<C>

Source

pub fn event_type(&self) -> MessageLikeEventType

Available on crate feature unstable-msc3927 only.

Returns the type of this event.

Source

pub fn event_id(&self) -> &EventId

Available on crate feature unstable-msc3927 only.

Returns this event’s event_id field.

Source

pub fn sender(&self) -> &UserId

Available on crate feature unstable-msc3927 only.

Returns this event’s sender field.

Source

pub fn origin_server_ts(&self) -> MilliSecondsSinceUnixEpoch

Available on crate feature unstable-msc3927 only.

Returns this event’s origin_server_ts field.

Source

pub fn room_id(&self) -> &RoomId

Available on crate feature unstable-msc3927 only.

Returns this event’s room_id field.

Source

pub fn as_original(&self) -> Option<&OriginalMessageLikeEvent<C>>

Available on crate feature unstable-msc3927 only.

Get the inner OriginalMessageLikeEvent if this is an unredacted event.

Trait Implementations

Source§

impl<C> Clone for MessageLikeEvent<C>

Source§

fn clone(&self) -> MessageLikeEvent<C>

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<C> Debug for MessageLikeEvent<C>

Source§

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

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

impl<'de, C> Deserialize<'de> for MessageLikeEvent<C>

Source§

fn deserialize<D>( deserializer: D, ) -> Result<MessageLikeEvent<C>, <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more