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