pub struct VotingPowerPublicInputs {
pub org_subject: SubjectId,
pub threshold: u128,
pub reference: Option<[u8; 32]>,
pub voting_commitment: [u8; 32],
pub proof_timestamp: Timestamp,
}Expand description
Public inputs for voting power proof
Fields§
§org_subject: SubjectIdOrganization subject ID
threshold: u128Voting power threshold
reference: Option<[u8; 32]>Reference to proposal or record date
voting_commitment: [u8; 32]Voting power commitment
proof_timestamp: TimestampProof timestamp
Trait Implementations§
Source§impl Clone for VotingPowerPublicInputs
impl Clone for VotingPowerPublicInputs
Source§fn clone(&self) -> VotingPowerPublicInputs
fn clone(&self) -> VotingPowerPublicInputs
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 VotingPowerPublicInputs
impl Debug for VotingPowerPublicInputs
Source§impl<'de> Deserialize<'de> for VotingPowerPublicInputs
impl<'de> Deserialize<'de> for VotingPowerPublicInputs
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 VotingPowerPublicInputs
impl PartialEq for VotingPowerPublicInputs
Source§fn eq(&self, other: &VotingPowerPublicInputs) -> bool
fn eq(&self, other: &VotingPowerPublicInputs) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for VotingPowerPublicInputs
impl Serialize for VotingPowerPublicInputs
impl Eq for VotingPowerPublicInputs
impl StructuralPartialEq for VotingPowerPublicInputs
Auto Trait Implementations§
impl Freeze for VotingPowerPublicInputs
impl RefUnwindSafe for VotingPowerPublicInputs
impl Send for VotingPowerPublicInputs
impl Sync for VotingPowerPublicInputs
impl Unpin for VotingPowerPublicInputs
impl UnsafeUnpin for VotingPowerPublicInputs
impl UnwindSafe for VotingPowerPublicInputs
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