pub type PollEndEvent = MessageLikeEvent<PollEndEventContent>;
Expand description
An m.poll.end
event.
Aliased Type§
enum PollEndEvent {
Original(OriginalMessageLikeEvent<PollEndEventContent>),
Redacted(RedactedMessageLikeEvent<RedactedPollEndEventContent>),
}
Variants§
Original(OriginalMessageLikeEvent<PollEndEventContent>)
Original, unredacted form of the event.
Redacted(RedactedMessageLikeEvent<RedactedPollEndEventContent>)
Redacted form of the event with minimal fields.
Implementations
Source§impl<C> MessageLikeEvent<C>
impl<C> MessageLikeEvent<C>
Sourcepub fn event_type(&self) -> MessageLikeEventType
pub fn event_type(&self) -> MessageLikeEventType
Returns the type
of this event.
Sourcepub fn origin_server_ts(&self) -> MilliSecondsSinceUnixEpoch
pub fn origin_server_ts(&self) -> MilliSecondsSinceUnixEpoch
Returns this event’s origin_server_ts
field.
Sourcepub fn as_original(&self) -> Option<&OriginalMessageLikeEvent<C>>
pub fn as_original(&self) -> Option<&OriginalMessageLikeEvent<C>>
Get the inner OriginalMessageLikeEvent
if this is an unredacted event.
Trait Implementations
Source§impl<C: Clone + MessageLikeEventContent + RedactContent> Clone for MessageLikeEvent<C>
impl<C: Clone + MessageLikeEventContent + RedactContent> Clone for MessageLikeEvent<C>
Source§fn clone(&self) -> MessageLikeEvent<C>
fn clone(&self) -> MessageLikeEvent<C>
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<C: Debug + MessageLikeEventContent + RedactContent> Debug for MessageLikeEvent<C>
impl<C: Debug + MessageLikeEventContent + RedactContent> Debug for MessageLikeEvent<C>
Source§impl<'de, C> Deserialize<'de> for MessageLikeEvent<C>
impl<'de, C> Deserialize<'de> for MessageLikeEvent<C>
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more