pub struct LoanRepayCollateralRateResponse {
pub collateral_coin: String,
pub loan_coin: String,
pub rate: String,
pub repay_amount: String,
}
Expand description
LoanRepayCollateralRateResponse
JSON schema
{
"type": "object",
"required": [
"collateralCoin",
"loanCoin",
"rate",
"repayAmount"
],
"properties": {
"collateralCoin": {
"examples": [
"BUSD"
],
"type": "string"
},
"loanCoin": {
"examples": [
"BUSD"
],
"type": "string"
},
"rate": {
"description": "rate of collateral coin/loan coin",
"examples": [
"300.36781234"
],
"type": "string"
},
"repayAmount": {
"examples": [
"1000"
],
"type": "string"
}
}
}
Fields§
§collateral_coin: String
§loan_coin: String
§rate: String
rate of collateral coin/loan coin
repay_amount: String
Trait Implementations§
Source§impl Clone for LoanRepayCollateralRateResponse
impl Clone for LoanRepayCollateralRateResponse
Source§fn clone(&self) -> LoanRepayCollateralRateResponse
fn clone(&self) -> LoanRepayCollateralRateResponse
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<'de> Deserialize<'de> for LoanRepayCollateralRateResponse
impl<'de> Deserialize<'de> for LoanRepayCollateralRateResponse
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<&LoanRepayCollateralRateResponse> for LoanRepayCollateralRateResponse
impl From<&LoanRepayCollateralRateResponse> for LoanRepayCollateralRateResponse
Source§fn from(value: &LoanRepayCollateralRateResponse) -> Self
fn from(value: &LoanRepayCollateralRateResponse) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for LoanRepayCollateralRateResponse
impl RefUnwindSafe for LoanRepayCollateralRateResponse
impl Send for LoanRepayCollateralRateResponse
impl Sync for LoanRepayCollateralRateResponse
impl Unpin for LoanRepayCollateralRateResponse
impl UnwindSafe for LoanRepayCollateralRateResponse
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