pub struct BallotEntry {
pub id: Option<String>,
pub question: String,
pub stance: String,
pub confidence: Option<f64>,
pub voter: String,
pub commit: String,
pub used: Vec<String>,
pub lineage: String,
pub replaces: Option<String>,
pub expect: Option<String>,
pub cast_at: String,
}Expand description
A ballot entry.
Fields§
§id: Option<String>The canonical id: first 16 hex chars of sha256(canonical ballot JSON
without this id field).
question: String§stance: String§confidence: Option<f64>§voter: String§commit: String§used: Vec<String>§lineage: String§replaces: Option<String>§expect: Option<String>§cast_at: StringTrait Implementations§
Source§impl Clone for BallotEntry
impl Clone for BallotEntry
Source§impl Debug for BallotEntry
impl Debug for BallotEntry
Source§impl<'de> Deserialize<'de> for BallotEntry
impl<'de> Deserialize<'de> for BallotEntry
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 BallotEntry
impl PartialEq for BallotEntry
Source§impl Serialize for BallotEntry
impl Serialize for BallotEntry
impl StructuralPartialEq for BallotEntry
Auto Trait Implementations§
impl Freeze for BallotEntry
impl RefUnwindSafe for BallotEntry
impl Send for BallotEntry
impl Sync for BallotEntry
impl Unpin for BallotEntry
impl UnsafeUnpin for BallotEntry
impl UnwindSafe for BallotEntry
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more