Struct ruma_common::events::poll::response::PollResponseContent
source · [−]Available on crate features
events
and unstable-msc3381
only.Expand description
Poll response content.
Fields
answers: Vec<String>
The IDs of the selected answers of the poll.
It should be truncated to max_selections
from the related poll start event.
If this is an empty array or includes unknown IDs, this vote should be considered as spoiled.
Implementations
Trait Implementations
sourceimpl Clone for PollResponseContent
impl Clone for PollResponseContent
sourcefn clone(&self) -> PollResponseContent
fn clone(&self) -> PollResponseContent
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 PollResponseContent
impl Debug for PollResponseContent
sourceimpl<'de> Deserialize<'de> for PollResponseContent
impl<'de> Deserialize<'de> for PollResponseContent
sourcefn 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
sourceimpl Serialize for PollResponseContent
impl Serialize for PollResponseContent
Auto Trait Implementations
impl RefUnwindSafe for PollResponseContent
impl Send for PollResponseContent
impl Sync for PollResponseContent
impl Unpin for PollResponseContent
impl UnwindSafe for PollResponseContent
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