pub struct LoanBorrowResponse {
pub collateral_amount: String,
pub collateral_coin: String,
pub hourly_interest_rate: String,
pub loan_amount: String,
pub loan_coin: String,
pub order_id: String,
}
Expand description
LoanBorrowResponse
JSON schema
{
"type": "object",
"required": [
"collateralAmount",
"collateralCoin",
"hourlyInterestRate",
"loanAmount",
"loanCoin",
"orderId"
],
"properties": {
"collateralAmount": {
"examples": [
"50.5"
],
"type": "string"
},
"collateralCoin": {
"examples": [
"BNB"
],
"type": "string"
},
"hourlyInterestRate": {
"examples": [
"0.001234"
],
"type": "string"
},
"loanAmount": {
"examples": [
"100.5"
],
"type": "string"
},
"loanCoin": {
"examples": [
"BUSD"
],
"type": "string"
},
"orderId": {
"examples": [
"100000001"
],
"type": "string"
}
}
}
Fields§
§collateral_amount: String
§collateral_coin: String
§hourly_interest_rate: String
§loan_amount: String
§loan_coin: String
§order_id: String
Trait Implementations§
Source§impl Clone for LoanBorrowResponse
impl Clone for LoanBorrowResponse
Source§fn clone(&self) -> LoanBorrowResponse
fn clone(&self) -> LoanBorrowResponse
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 LoanBorrowResponse
impl Debug for LoanBorrowResponse
Source§impl<'de> Deserialize<'de> for LoanBorrowResponse
impl<'de> Deserialize<'de> for LoanBorrowResponse
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<&LoanBorrowResponse> for LoanBorrowResponse
impl From<&LoanBorrowResponse> for LoanBorrowResponse
Source§fn from(value: &LoanBorrowResponse) -> Self
fn from(value: &LoanBorrowResponse) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for LoanBorrowResponse
impl RefUnwindSafe for LoanBorrowResponse
impl Send for LoanBorrowResponse
impl Sync for LoanBorrowResponse
impl Unpin for LoanBorrowResponse
impl UnwindSafe for LoanBorrowResponse
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