Struct pdotc::InclusionFee
source · pub struct InclusionFee {
pub base_fee: Balance,
pub len_fee: Balance,
pub adjusted_weight_fee: Balance,
}
Fields§
§base_fee: Balance
This is the minimum amount a user pays for a transaction. It is declared
as a base weight in the runtime and converted to a fee using
WeightToFee
.
len_fee: Balance
The length fee, the amount paid for the encoded length (in bytes) of the transaction.
adjusted_weight_fee: Balance
targeted_fee_adjustment
: This is a multiplier that can tune the final fee based on the congestion of the network.weight_fee
: This amount is computed based on the weight of the transaction. Weight accounts for the execution time of a transaction.
adjusted_weight_fee = targeted_fee_adjustment * weight_fee
Implementations§
source§impl InclusionFee
impl InclusionFee
pub fn inclusion_fee(&self) -> Balance
Trait Implementations§
source§impl Clone for InclusionFee
impl Clone for InclusionFee
source§fn clone(&self) -> InclusionFee
fn clone(&self) -> InclusionFee
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 InclusionFee
impl Debug for InclusionFee
source§impl<'de> Deserialize<'de> for InclusionFee
impl<'de> Deserialize<'de> for InclusionFee
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<InclusionFee> for InclusionFee
impl PartialEq<InclusionFee> for InclusionFee
source§fn eq(&self, other: &InclusionFee) -> bool
fn eq(&self, other: &InclusionFee) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for InclusionFee
impl Serialize for InclusionFee
impl Eq for InclusionFee
impl StructuralEq for InclusionFee
impl StructuralPartialEq for InclusionFee
Auto Trait Implementations§
impl RefUnwindSafe for InclusionFee
impl Send for InclusionFee
impl Sync for InclusionFee
impl Unpin for InclusionFee
impl UnwindSafe for InclusionFee
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T, Outer> IsWrappedBy<Outer> for Twhere
Outer: AsRef<T> + AsMut<T> + From<T>,
T: From<Outer>,
impl<T, Outer> IsWrappedBy<Outer> for Twhere Outer: AsRef<T> + AsMut<T> + From<T>, T: From<Outer>,
source§impl<S, T> UncheckedInto<T> for Swhere
T: UncheckedFrom<S>,
impl<S, T> UncheckedInto<T> for Swhere T: UncheckedFrom<S>,
source§fn unchecked_into(self) -> T
fn unchecked_into(self) -> T
The counterpart to
unchecked_from
.