pub struct DecisionState {
pub proposals: BTreeMap<String, Proposal>,
pub evaluations: Vec<Evaluation>,
pub objections: Vec<Objection>,
pub votes: BTreeMap<String, BTreeMap<String, Vote>>,
pub phase: DecisionPhase,
}Fields§
§proposals: BTreeMap<String, Proposal>§evaluations: Vec<Evaluation>§objections: Vec<Objection>§votes: BTreeMap<String, BTreeMap<String, Vote>>§phase: DecisionPhaseTrait Implementations§
Source§impl Clone for DecisionState
impl Clone for DecisionState
Source§fn clone(&self) -> DecisionState
fn clone(&self) -> DecisionState
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 DecisionState
impl Debug for DecisionState
Source§impl<'de> Deserialize<'de> for DecisionState
impl<'de> Deserialize<'de> for DecisionState
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<DecisionState, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<DecisionState, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for DecisionState
impl Serialize for DecisionState
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for DecisionState
impl RefUnwindSafe for DecisionState
impl Send for DecisionState
impl Sync for DecisionState
impl Unpin for DecisionState
impl UnsafeUnpin for DecisionState
impl UnwindSafe for DecisionState
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