pub struct RepaymentInfo {
pub collateral_coin: String,
pub current_ltv: String,
pub loan_coin: String,
pub remaining_collateral: String,
pub remaining_interest: String,
pub remaining_principal: String,
pub repay_status: String,
}
Expand description
RepaymentInfo
JSON schema
{
"type": "object",
"required": [
"collateralCoin",
"currentLTV",
"loanCoin",
"remainingCollateral",
"remainingInterest",
"remainingPrincipal",
"repayStatus"
],
"properties": {
"collateralCoin": {
"examples": [
"BNB"
],
"type": "string"
},
"currentLTV": {
"examples": [
"0.25"
],
"type": "string"
},
"loanCoin": {
"examples": [
"BUSD"
],
"type": "string"
},
"remainingCollateral": {
"examples": [
"5.253"
],
"type": "string"
},
"remainingInterest": {
"examples": [
"0"
],
"type": "string"
},
"remainingPrincipal": {
"examples": [
"100.5"
],
"type": "string"
},
"repayStatus": {
"examples": [
"Repaying"
],
"type": "string"
}
}
}
Fields§
§collateral_coin: String
§current_ltv: String
§loan_coin: String
§remaining_collateral: String
§remaining_interest: String
§remaining_principal: String
§repay_status: String
Trait Implementations§
Source§impl Clone for RepaymentInfo
impl Clone for RepaymentInfo
Source§fn clone(&self) -> RepaymentInfo
fn clone(&self) -> RepaymentInfo
Returns a duplicate 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 RepaymentInfo
impl Debug for RepaymentInfo
Source§impl<'de> Deserialize<'de> for RepaymentInfo
impl<'de> Deserialize<'de> for RepaymentInfo
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 From<&RepaymentInfo> for RepaymentInfo
impl From<&RepaymentInfo> for RepaymentInfo
Source§fn from(value: &RepaymentInfo) -> Self
fn from(value: &RepaymentInfo) -> Self
Converts to this type from the input type.
Source§impl From<RepaymentInfo> for LoanRepayResponse
impl From<RepaymentInfo> for LoanRepayResponse
Source§fn from(value: RepaymentInfo) -> Self
fn from(value: RepaymentInfo) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RepaymentInfo
impl RefUnwindSafe for RepaymentInfo
impl Send for RepaymentInfo
impl Sync for RepaymentInfo
impl Unpin for RepaymentInfo
impl UnwindSafe for RepaymentInfo
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