pub struct FeeDetails { /* private fields */ }
Implementations§
Source§impl FeeDetails
impl FeeDetails
pub fn new( transaction_fee: u64, prioritization_fee: u64, remove_rounding_in_fee_calculation: bool, ) -> Self
pub fn total_fee(&self) -> u64
pub fn accumulate(&mut self, fee_details: &FeeDetails)
pub fn transaction_fee(&self) -> u64
pub fn prioritization_fee(&self) -> u64
Trait Implementations§
Source§impl Clone for FeeDetails
impl Clone for FeeDetails
Source§fn clone(&self) -> FeeDetails
fn clone(&self) -> FeeDetails
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 FeeDetails
impl Debug for FeeDetails
Source§impl Default for FeeDetails
impl Default for FeeDetails
Source§fn default() -> FeeDetails
fn default() -> FeeDetails
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for FeeDetails
impl<'de> Deserialize<'de> for FeeDetails
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 for FeeDetails
impl PartialEq for FeeDetails
Source§impl Serialize for FeeDetails
impl Serialize for FeeDetails
impl Copy for FeeDetails
impl Eq for FeeDetails
impl StructuralPartialEq for FeeDetails
Auto Trait Implementations§
impl Freeze for FeeDetails
impl RefUnwindSafe for FeeDetails
impl Send for FeeDetails
impl Sync for FeeDetails
impl Unpin for FeeDetails
impl UnwindSafe for FeeDetails
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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