pub type OriginalSyncUnstablePollStartEvent = OriginalSyncMessageLikeEvent<UnstablePollStartEventContent>;Expand description
An org.matrix.msc3381.poll.start event from a sync_events response.
Aliased Type§
pub struct OriginalSyncUnstablePollStartEvent {
pub content: UnstablePollStartEventContent,
pub event_id: OwnedEventId,
pub sender: OwnedUserId,
pub origin_server_ts: MilliSecondsSinceUnixEpoch,
pub unsigned: MessageLikeUnsigned<UnstablePollStartEventContent>,
}Fields§
§content: UnstablePollStartEventContentData 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<UnstablePollStartEventContent>Additional key-value pairs not signed by the homeserver.
Implementations§
Source§impl OriginalSyncUnstablePollStartEvent
impl OriginalSyncUnstablePollStartEvent
Sourcepub fn compile_results<'a>(
&'a self,
responses: impl IntoIterator<Item = PollResponseData<'a>>,
) -> UnstablePollEndEventContent
pub fn compile_results<'a>( &'a self, responses: impl IntoIterator<Item = PollResponseData<'a>>, ) -> UnstablePollEndEventContent
Compile the results for this poll with the given response into an
UnstablePollEndEventContent.
It generates a default text representation of the results in English.
This uses compile_unstable_poll_results() internally.