pub struct PollEndEventContent {
pub poll_end: PollEndContent,
pub relates_to: Reference,
}
Available on crate features
events
and unstable-msc3381
only.Expand description
The payload for a poll end event.
Fields§
§poll_end: PollEndContent
The poll end content of the message.
relates_to: Reference
Information about the poll start event this responds to.
Implementations§
source§impl PollEndEventContent
impl PollEndEventContent
sourcepub fn new(
poll_end: PollEndContent,
poll_start_id: OwnedEventId
) -> PollEndEventContent
pub fn new(
poll_end: PollEndContent,
poll_start_id: OwnedEventId
) -> PollEndEventContent
Creates a new PollEndEventContent
that responds to the given poll start event ID,
with the given poll end content.
Trait Implementations§
source§impl Clone for PollEndEventContent
impl Clone for PollEndEventContent
source§fn clone(&self) -> PollEndEventContent
fn clone(&self) -> PollEndEventContent
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 Debug for PollEndEventContent
impl Debug for PollEndEventContent
source§impl<'de> Deserialize<'de> for PollEndEventContent
impl<'de> Deserialize<'de> for PollEndEventContent
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<PollEndEventContent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<PollEndEventContent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl EventContent for PollEndEventContent
impl EventContent for PollEndEventContent
§type EventType = MessageLikeEventType
type EventType = MessageLikeEventType
The Rust enum for the event kind’s known types.
source§fn event_type(&self) -> <PollEndEventContent as EventContent>::EventType
fn event_type(&self) -> <PollEndEventContent as EventContent>::EventType
Get the event’s type, like
m.room.message
.source§impl From<PollEndEventContent> for AnyMessageLikeEventContent
impl From<PollEndEventContent> for AnyMessageLikeEventContent
source§fn from(c: PollEndEventContent) -> AnyMessageLikeEventContent
fn from(c: PollEndEventContent) -> AnyMessageLikeEventContent
Converts to this type from the input type.
source§impl RedactContent for PollEndEventContent
impl RedactContent for PollEndEventContent
§type Redacted = RedactedPollEndEventContent
type Redacted = RedactedPollEndEventContent
The redacted form of the event’s content.
source§fn redact(self, version: &RoomVersionId) -> RedactedPollEndEventContent
fn redact(self, version: &RoomVersionId) -> RedactedPollEndEventContent
Transform
self
into a redacted form (removing most or all fields) according to the spec. Read moresource§impl Serialize for PollEndEventContent
impl Serialize for PollEndEventContent
source§fn 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