pub struct PollFull {Show 13 fields
pub self_link: Option<Url>,
pub web_link: Option<Url>,
pub resource_type_link: Option<Url>,
pub http_etag: Option<String>,
pub allowspoilt: bool,
pub datecloses: DateTime<Utc>,
pub dateopens: DateTime<Utc>,
pub name: String,
pub proposition: String,
pub secrecy: Secrecy,
pub team_link: Url,
pub title: String,
pub type: Type,
}Expand description
Representation of the poll-full resource
Fields§
§self_link: Option<Url>The canonical link to this resource.
web_link: Option<Url>The canonical human-addressable web link to this resource.
resource_type_link: Option<Url>The link to the WADL description of this resource.
http_etag: Option<String>The value of the HTTP ETag for this resource.
allowspoilt: boolUsers can spoil their votes?
Allow users to leave the ballot blank (i.e. cast a vote for “None of the above”)
datecloses: DateTime<Utc>The date and time when this poll closes
dateopens: DateTime<Utc>The date and time when this poll opens
name: StringThe 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: StringThe proposition that is going to be voted
secrecy: SecrecyThe secrecy of the Poll
team_link: UrlThe team that this poll refers to.
title: StringThe title of this poll
type: TypeThe type of this poll
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PollFull
impl<'de> Deserialize<'de> for PollFull
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 PollFull
Auto Trait Implementations§
impl Freeze for PollFull
impl RefUnwindSafe for PollFull
impl Send for PollFull
impl Sync for PollFull
impl Unpin for PollFull
impl UnwindSafe for PollFull
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