Struct ruma_common::events::poll::end::PollEndEventContent
source · 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: PollEndContentThe poll end content of the message.
relates_to: ReferenceInformation about the poll start event this responds to.
Implementations§
source§impl PollEndEventContent
impl PollEndEventContent
sourcepub fn new(poll_end: PollEndContent, poll_start_id: OwnedEventId) -> Self
pub fn new(poll_end: PollEndContent, poll_start_id: OwnedEventId) -> Self
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<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
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) -> Self::EventType
fn event_type(&self) -> Self::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) -> Self
fn from(c: PollEndEventContent) -> Self
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 more