pub struct Voting {
pub id: String,
pub choices: Vec<String>,
}
Expand description
Represents a voting.
Fields§
§id: String
§choices: Vec<String>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Voting
impl<'de> Deserialize<'de> for Voting
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 Voting
Auto Trait Implementations§
impl Freeze for Voting
impl RefUnwindSafe for Voting
impl Send for Voting
impl Sync for Voting
impl Unpin for Voting
impl UnwindSafe for Voting
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