pub struct PollCreatePayload {
pub poll_id: String,
pub question: String,
pub options: Vec<PollOption>,
pub min_choices: Option<u32>,
pub max_choices: Option<u32>,
pub closes_at: Option<i64>,
pub references: Vec<String>,
pub extra: BTreeMap<String, Value>,
}Fields§
§poll_id: String§question: String§options: Vec<PollOption>§min_choices: Option<u32>§max_choices: Option<u32>§closes_at: Option<i64>§references: Vec<String>§extra: BTreeMap<String, Value>Trait Implementations§
Source§impl Clone for PollCreatePayload
impl Clone for PollCreatePayload
Source§fn clone(&self) -> PollCreatePayload
fn clone(&self) -> PollCreatePayload
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PollCreatePayload
impl Debug for PollCreatePayload
Source§impl<'de> Deserialize<'de> for PollCreatePayload
impl<'de> Deserialize<'de> for PollCreatePayload
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
Source§impl PartialEq for PollCreatePayload
impl PartialEq for PollCreatePayload
Source§fn eq(&self, other: &PollCreatePayload) -> bool
fn eq(&self, other: &PollCreatePayload) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PollCreatePayload
impl Serialize for PollCreatePayload
impl StructuralPartialEq for PollCreatePayload
Auto Trait Implementations§
impl Freeze for PollCreatePayload
impl RefUnwindSafe for PollCreatePayload
impl Send for PollCreatePayload
impl Sync for PollCreatePayload
impl Unpin for PollCreatePayload
impl UnsafeUnpin for PollCreatePayload
impl UnwindSafe for PollCreatePayload
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more