Struct snapshot_lib::registration::VotingRegistration
source · pub struct VotingRegistration {
pub stake_public_key: StakeAddress,
pub voting_power: Value,
pub reward_address: RewardAddress,
pub delegations: Delegations,
pub voting_purpose: Option<u64>,
pub nonce: u64,
}
Expand description
The voting registration/delegation format as introduced in CIP-36, which is a generalization of CIP-15, allowing to distribute voting power among multiple keys in a single transaction and to tag the purpose of the vote.
Fields§
§stake_public_key: StakeAddress
§voting_power: Value
§reward_address: RewardAddress
Shelley address discriminated for the same network this transaction is submitted to.
delegations: Delegations
§voting_purpose: Option<u64>
0 = Catalyst, assumed 0 for old legacy registrations
nonce: u64
Implementations§
Trait Implementations§
source§impl Arbitrary for VotingRegistration
impl Arbitrary for VotingRegistration
§type Parameters = ()
type Parameters = ()
The type of parameters that
arbitrary_with
accepts for configuration
of the generated Strategy
. Parameters must implement Default
.§type Strategy = BoxedStrategy<VotingRegistration>
type Strategy = BoxedStrategy<VotingRegistration>
The type of
Strategy
used to generate values of type Self
.source§fn arbitrary_with(_args: Self::Parameters) -> Self::Strategy
fn arbitrary_with(_args: Self::Parameters) -> Self::Strategy
source§impl Clone for VotingRegistration
impl Clone for VotingRegistration
source§fn clone(&self) -> VotingRegistration
fn clone(&self) -> VotingRegistration
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 VotingRegistration
impl Debug for VotingRegistration
source§impl<'de> Deserialize<'de> for VotingRegistration
impl<'de> Deserialize<'de> for VotingRegistration
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<VotingRegistration> for VotingRegistration
impl PartialEq<VotingRegistration> for VotingRegistration
source§fn eq(&self, other: &VotingRegistration) -> bool
fn eq(&self, other: &VotingRegistration) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for VotingRegistration
impl Serialize for VotingRegistration
impl Eq for VotingRegistration
impl StructuralEq for VotingRegistration
impl StructuralPartialEq for VotingRegistration
Auto Trait Implementations§
impl RefUnwindSafe for VotingRegistration
impl Send for VotingRegistration
impl Sync for VotingRegistration
impl Unpin for VotingRegistration
impl UnwindSafe for VotingRegistration
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