pub type OriginalSyncPollStartEvent = OriginalSyncMessageLikeEvent<PollStartEventContent>;Expand description
An m.poll.start event from a sync_events response.
Aliased Type§
pub struct OriginalSyncPollStartEvent {
pub content: PollStartEventContent,
pub event_id: OwnedEventId,
pub sender: OwnedUserId,
pub origin_server_ts: MilliSecondsSinceUnixEpoch,
pub unsigned: MessageLikeUnsigned<PollStartEventContent>,
}Fields§
§content: PollStartEventContentData specific to the event type.
event_id: OwnedEventIdThe globally unique identifier for the event.
sender: OwnedUserIdThe fully-qualified ID of the user who sent this event.
origin_server_ts: MilliSecondsSinceUnixEpochTimestamp on the originating homeserver when this event was sent.
unsigned: MessageLikeUnsigned<PollStartEventContent>Additional key-value pairs not signed by the homeserver.
Implementations§
Source§impl OriginalSyncPollStartEvent
impl OriginalSyncPollStartEvent
Sourcepub fn compile_results<'a>(
&'a self,
responses: impl IntoIterator<Item = PollResponseData<'a>>,
) -> PollEndEventContent
pub fn compile_results<'a>( &'a self, responses: impl IntoIterator<Item = PollResponseData<'a>>, ) -> PollEndEventContent
Compile the results for this poll with the given response into a PollEndEventContent.
It generates a default text representation of the results in English.
This uses compile_poll_results() internally.