pub struct PpmExpiryFeeEntry {
pub expiry_blocks_threshold: u32,
pub ppm: PpmFeeRate,
}Expand description
Entry in a table to calculate the PPM (parts per million) fee rate of a transaction based on how new a VTXO is.
Fields§
§expiry_blocks_threshold: u32A threshold for the number of blocks until a VTXO expires for the ppm amount to apply.
As an example, if this value is set to 50 and a VTXO expires in 60 blocks, this
PpmExpiryFeeEntry will be used to calculate the fee unless another entry exists with an
expiry_blocks_threshold with a value between 51 and 60 (inclusive).
ppm: PpmFeeRatePPM (parts per million) fee rate to apply for this expiry period.
Trait Implementations§
Source§impl Clone for PpmExpiryFeeEntry
impl Clone for PpmExpiryFeeEntry
Source§fn clone(&self) -> PpmExpiryFeeEntry
fn clone(&self) -> PpmExpiryFeeEntry
Returns a duplicate 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 PpmExpiryFeeEntry
impl Debug for PpmExpiryFeeEntry
Source§impl<'de> Deserialize<'de> for PpmExpiryFeeEntry
impl<'de> Deserialize<'de> for PpmExpiryFeeEntry
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 Hash for PpmExpiryFeeEntry
impl Hash for PpmExpiryFeeEntry
Source§impl PartialEq for PpmExpiryFeeEntry
impl PartialEq for PpmExpiryFeeEntry
Source§impl Serialize for PpmExpiryFeeEntry
impl Serialize for PpmExpiryFeeEntry
impl Copy for PpmExpiryFeeEntry
impl Eq for PpmExpiryFeeEntry
impl StructuralPartialEq for PpmExpiryFeeEntry
Auto Trait Implementations§
impl Freeze for PpmExpiryFeeEntry
impl RefUnwindSafe for PpmExpiryFeeEntry
impl Send for PpmExpiryFeeEntry
impl Sync for PpmExpiryFeeEntry
impl Unpin for PpmExpiryFeeEntry
impl UnsafeUnpin for PpmExpiryFeeEntry
impl UnwindSafe for PpmExpiryFeeEntry
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