pub struct CalculateBorrowResult {
pub borrow_amount: Decimal,
pub receive_amount: u64,
pub borrow_fee: u64,
pub host_fee: u64,
}Expand description
Calculate borrow result
Fields§
§borrow_amount: DecimalTotal amount of borrow including fees
receive_amount: u64Borrow amount portion of total amount
borrow_fee: u64Loan origination fee
host_fee: u64Host fee portion of origination fee
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CalculateBorrowResult
impl RefUnwindSafe for CalculateBorrowResult
impl Send for CalculateBorrowResult
impl Sync for CalculateBorrowResult
impl Unpin for CalculateBorrowResult
impl UnwindSafe for CalculateBorrowResult
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