pub type OriginalSyncUnstablePollStartEvent = OriginalSyncMessageLikeEvent<UnstablePollStartEventContent>;
Expand description
An org.matrix.msc3381.poll.start
event from a sync_events
response.
Aliased Type§
struct OriginalSyncUnstablePollStartEvent {
pub content: UnstablePollStartEventContent,
pub event_id: OwnedEventId,
pub sender: OwnedUserId,
pub origin_server_ts: MilliSecondsSinceUnixEpoch,
pub unsigned: MessageLikeUnsigned<UnstablePollStartEventContent>,
}
Fields§
§content: UnstablePollStartEventContent
Data specific to the event type.
event_id: OwnedEventId
The globally unique event identifier for the user who sent the event.
sender: OwnedUserId
The fully-qualified ID of the user who sent this event.
origin_server_ts: MilliSecondsSinceUnixEpoch
Timestamp in milliseconds on 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.