Struct ddclient_rs::VotingResult
source · pub struct VotingResult {
pub choice: String,
pub index: i32,
pub wins: i32,
pub percentage: f32,
}
Expand description
Represents the single result for a specific choice.
Fields§
§choice: String
§index: i32
§wins: i32
§percentage: f32
Trait Implementations§
source§impl Debug for VotingResult
impl Debug for VotingResult
source§impl<'de> Deserialize<'de> for VotingResult
impl<'de> Deserialize<'de> for VotingResult
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
source§impl PartialEq for VotingResult
impl PartialEq for VotingResult
source§fn eq(&self, other: &VotingResult) -> bool
fn eq(&self, other: &VotingResult) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for VotingResult
impl Serialize for VotingResult
impl StructuralPartialEq for VotingResult
Auto Trait Implementations§
impl RefUnwindSafe for VotingResult
impl Send for VotingResult
impl Sync for VotingResult
impl Unpin for VotingResult
impl UnwindSafe for VotingResult
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