pub struct PollEndEventContent {
pub poll_end: PollEndContent,
pub relates_to: ReferenceRelation,
}
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: ReferenceRelation
Information about the poll start event this responds to.
Implementations
sourceimpl 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
sourceimpl Clone for PollEndEventContent
impl Clone for PollEndEventContent
sourcefn clone(&self) -> PollEndEventContent
fn clone(&self) -> PollEndEventContent
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for PollEndEventContent
impl Debug for PollEndEventContent
sourceimpl<'de> Deserialize<'de> for PollEndEventContent
impl<'de> Deserialize<'de> for PollEndEventContent
sourcefn 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
sourceimpl EventContent for PollEndEventContent
impl EventContent for PollEndEventContent
type EventType = MessageLikeEventType
type EventType = MessageLikeEventType
The Rust enum for the event kind’s known types.
sourcefn event_type(&self) -> <PollEndEventContent as EventContent>::EventType
fn event_type(&self) -> <PollEndEventContent as EventContent>::EventType
Get the event’s type, like
m.room.message
.sourceimpl From<PollEndEventContent> for AnyMessageLikeEventContent
impl From<PollEndEventContent> for AnyMessageLikeEventContent
sourcefn from(c: PollEndEventContent) -> AnyMessageLikeEventContent
fn from(c: PollEndEventContent) -> AnyMessageLikeEventContent
Converts to this type from the input type.
sourceimpl RedactContent for PollEndEventContent
impl RedactContent for PollEndEventContent
type Redacted = RedactedPollEndEventContent
type Redacted = RedactedPollEndEventContent
The redacted form of the event’s content.
sourcefn 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 moresourceimpl Serialize for PollEndEventContent
impl Serialize for PollEndEventContent
sourcefn 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
impl MessageLikeEventContent for PollEndEventContent
Auto Trait Implementations
impl RefUnwindSafe for PollEndEventContent
impl Send for PollEndEventContent
impl Sync for PollEndEventContent
impl Unpin for PollEndEventContent
impl UnwindSafe for PollEndEventContent
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more