Struct chain_impl_mockchain::fee::PerVoteCertificateFee
source · pub struct PerVoteCertificateFee {
pub certificate_vote_plan: Option<NonZeroU64>,
pub certificate_vote_cast: Option<NonZeroU64>,
}
Fields§
§certificate_vote_plan: Option<NonZeroU64>
§certificate_vote_cast: Option<NonZeroU64>
Implementations§
source§impl PerVoteCertificateFee
impl PerVoteCertificateFee
pub fn new( certificate_vote_plan: Option<NonZeroU64>, certificate_vote_cast: Option<NonZeroU64> ) -> Self
fn fees_for_certificate(&self, cert: &CertificateSlice<'_>) -> Option<Value>
Trait Implementations§
source§impl Arbitrary for PerVoteCertificateFee
impl Arbitrary for PerVoteCertificateFee
source§impl Clone for PerVoteCertificateFee
impl Clone for PerVoteCertificateFee
source§fn clone(&self) -> PerVoteCertificateFee
fn clone(&self) -> PerVoteCertificateFee
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 PerVoteCertificateFee
impl Debug for PerVoteCertificateFee
source§impl Default for PerVoteCertificateFee
impl Default for PerVoteCertificateFee
source§fn default() -> PerVoteCertificateFee
fn default() -> PerVoteCertificateFee
Returns the “default value” for a type. Read more
source§impl PartialEq<PerVoteCertificateFee> for PerVoteCertificateFee
impl PartialEq<PerVoteCertificateFee> for PerVoteCertificateFee
source§fn eq(&self, other: &PerVoteCertificateFee) -> bool
fn eq(&self, other: &PerVoteCertificateFee) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<PerVoteCertificateFee> for PerVoteCertificateFee
impl PartialOrd<PerVoteCertificateFee> for PerVoteCertificateFee
source§fn partial_cmp(&self, other: &PerVoteCertificateFee) -> Option<Ordering>
fn partial_cmp(&self, other: &PerVoteCertificateFee) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for PerVoteCertificateFee
impl Eq for PerVoteCertificateFee
impl StructuralEq for PerVoteCertificateFee
impl StructuralPartialEq for PerVoteCertificateFee
Auto Trait Implementations§
impl RefUnwindSafe for PerVoteCertificateFee
impl Send for PerVoteCertificateFee
impl Sync for PerVoteCertificateFee
impl Unpin for PerVoteCertificateFee
impl UnwindSafe for PerVoteCertificateFee
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