pub struct FeeExtract<Exp> {
pub fees_extracted: UFix64<Exp>,
pub amount_remaining: UFix64<Exp>,
}Expand description
Combines fee multiplication for a token amount with the remaining token amount by subtraction.
Fields§
§fees_extracted: UFix64<Exp>§amount_remaining: UFix64<Exp>Implementations§
Source§impl<Exp> FeeExtract<Exp>
impl<Exp> FeeExtract<Exp>
Auto Trait Implementations§
impl<Exp> Freeze for FeeExtract<Exp>
impl<Exp> RefUnwindSafe for FeeExtract<Exp>where
Exp: RefUnwindSafe,
impl<Exp> Send for FeeExtract<Exp>where
Exp: Send,
impl<Exp> Sync for FeeExtract<Exp>where
Exp: Sync,
impl<Exp> Unpin for FeeExtract<Exp>where
Exp: Unpin,
impl<Exp> UnwindSafe for FeeExtract<Exp>where
Exp: UnwindSafe,
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> 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