pub struct DecisionOption {
pub option_id: String,
pub description: String,
pub votes: Vec<Vote>,
pub weight: f64,
}
Expand description
Decision option
Fieldsยง
ยงoption_id: String
Option ID
description: String
Option description
votes: Vec<Vote>
Votes for this option
weight: f64
Option 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 ยท 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 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