pub struct DecisionOption {
pub option_id: String,
pub description: String,
pub votes: Vec<Vote>,
pub weight: f64,
}Expand description
Decision option
Fields§
§option_id: StringOption ID
description: StringOption description
votes: Vec<Vote>Votes for this option
weight: f64Option weight/score
Trait Implementations§
Source§impl Clone for DecisionOption
impl Clone for DecisionOption
Source§fn clone(&self) -> DecisionOption
fn clone(&self) -> DecisionOption
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DecisionOption
impl Debug for DecisionOption
Source§impl<'de> Deserialize<'de> for DecisionOption
impl<'de> Deserialize<'de> for DecisionOption
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 DecisionOption
impl RefUnwindSafe for DecisionOption
impl Send for DecisionOption
impl Sync for DecisionOption
impl Unpin for DecisionOption
impl UnsafeUnpin for DecisionOption
impl UnwindSafe for DecisionOption
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