pub struct Poll {
pub id: i64,
pub owner_id: i64,
pub created: i64,
pub question: String,
pub votes: i64,
pub answers: Vec<PollAnswer>,
pub anonymous: bool,
pub multiple: Option<bool>,
pub end_date: Option<i64>,
}Expand description
Poll
Fields§
§id: i64Poll ID
owner_id: i64Owner ID
created: i64Created
question: StringQuestion
votes: i64Votes
answers: Vec<PollAnswer>Answers
anonymous: boolAnonymous
multiple: Option<bool>Multiple
end_date: Option<i64>End date
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Poll
impl<'de> Deserialize<'de> for Poll
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
Auto Trait Implementations§
impl Freeze for Poll
impl RefUnwindSafe for Poll
impl Send for Poll
impl Sync for Poll
impl Unpin for Poll
impl UnwindSafe for Poll
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