pub struct PollDiff {
pub allowspoilt: Option<bool>,
pub datecloses: Option<DateTime<Utc>>,
pub dateopens: Option<DateTime<Utc>>,
pub name: Option<String>,
pub proposition: Option<String>,
pub secrecy: Option<Secrecy>,
pub title: Option<String>,
pub type: Option<Type>,
}Expand description
Representation of the poll-diff resource
Fields§
§allowspoilt: Option<bool>Users can spoil their votes?
Allow users to leave the ballot blank (i.e. cast a vote for “None of the above”)
datecloses: Option<DateTime<Utc>>The date and time when this poll closes
dateopens: Option<DateTime<Utc>>The date and time when this poll opens
name: Option<String>The unique name of this poll
A short unique name, beginning with a lower-case letter or number, and containing only letters, numbers, dots, hyphens, or plus signs.
proposition: Option<String>The proposition that is going to be voted
secrecy: Option<Secrecy>The secrecy of the Poll
title: Option<String>The title of this poll
type: Option<Type>The type of this poll
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PollDiff
impl<'de> Deserialize<'de> for PollDiff
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
impl StructuralPartialEq for PollDiff
Auto Trait Implementations§
impl Freeze for PollDiff
impl RefUnwindSafe for PollDiff
impl Send for PollDiff
impl Sync for PollDiff
impl Unpin for PollDiff
impl UnwindSafe for PollDiff
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