Enum jormungandr_lib::interfaces::VotePayload
source · pub enum VotePayload {
Public {
choice: u8,
},
Private {
encrypted_vote: Vec<u8>,
proof: Vec<u8>,
},
}
Variants§
Implementations§
Trait Implementations§
source§impl Clone for VotePayload
impl Clone for VotePayload
source§fn clone(&self) -> VotePayload
fn clone(&self) -> VotePayload
Returns a copy 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 VotePayload
impl Debug for VotePayload
source§impl<'de> Deserialize<'de> for VotePayload
impl<'de> Deserialize<'de> for VotePayload
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 From<Payload> for VotePayload
impl From<Payload> for VotePayload
source§impl Hash for VotePayload
impl Hash for VotePayload
source§impl PartialEq<VotePayload> for VotePayload
impl PartialEq<VotePayload> for VotePayload
source§fn eq(&self, other: &VotePayload) -> bool
fn eq(&self, other: &VotePayload) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for VotePayload
impl Serialize for VotePayload
impl Eq for VotePayload
impl StructuralEq for VotePayload
impl StructuralPartialEq for VotePayload
Auto Trait Implementations§
impl RefUnwindSafe for VotePayload
impl Send for VotePayload
impl Sync for VotePayload
impl Unpin for VotePayload
impl UnwindSafe for VotePayload
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