pub struct Ballot {
pub proposal_id: String,
pub agent_id: String,
pub vote: BallotVote,
pub weight: f64,
pub reasoning: Option<String>,
pub signature: Option<String>,
pub cast_at: String,
}Expand description
Ballot model.
Fields§
§proposal_id: String§agent_id: String§vote: BallotVote§weight: f64§reasoning: Option<String>§signature: Option<String>§cast_at: StringTrait Implementations§
Source§impl<'de> Deserialize<'de> for Ballot
impl<'de> Deserialize<'de> for Ballot
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 Ballot
Auto Trait Implementations§
impl Freeze for Ballot
impl RefUnwindSafe for Ballot
impl Send for Ballot
impl Sync for Ballot
impl Unpin for Ballot
impl UnsafeUnpin for Ballot
impl UnwindSafe for Ballot
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