pub struct Poll {
pub id: usize,
pub owner: usize,
pub created: usize,
pub expires: usize,
pub option_a: String,
pub option_b: String,
pub option_c: String,
pub option_d: String,
pub votes_a: usize,
pub votes_b: usize,
pub votes_c: usize,
pub votes_d: usize,
}Fields§
§id: usize§owner: usize§created: usize§expires: usizeThe number of milliseconds until this poll can no longer receive votes.
option_a: String§option_b: String§option_c: String§option_d: String§votes_a: usize§votes_b: usize§votes_c: usize§votes_d: usizeImplementations§
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