Struct ruma_common::events::poll::response::PollResponseContent
source · pub struct PollResponseContent {
pub answers: Vec<String>,
}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§
source§impl Clone for PollResponseContent
impl Clone for PollResponseContent
source§fn clone(&self) -> PollResponseContent
fn clone(&self) -> PollResponseContent
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for PollResponseContent
impl Debug for PollResponseContent
source§impl<'de> Deserialize<'de> for PollResponseContent
impl<'de> Deserialize<'de> for PollResponseContent
source§fn 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