pub struct LinearFee {
pub coefficient: Coin,
pub constant: Coin,
pub ref_script_cost_per_byte: Coin,
}Expand description
Careful: although the linear fee is the same for Byron & Shelley The value of the parameters and how fees are computed is not the same
Fields§
§coefficient: Coinminfee_a
constant: Coinminfee_b
ref_script_cost_per_byte: Coinmin_fee_ref_script_cost_per_byte
Implementations§
Trait Implementations§
Source§impl Ord for LinearFee
impl Ord for LinearFee
Source§impl PartialOrd for LinearFee
impl PartialOrd for LinearFee
impl Eq for LinearFee
impl StructuralPartialEq for LinearFee
Auto Trait Implementations§
impl Freeze for LinearFee
impl RefUnwindSafe for LinearFee
impl Send for LinearFee
impl Sync for LinearFee
impl Unpin for LinearFee
impl UnwindSafe for LinearFee
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more