pub struct RateParams {
pub max_borrow_rate: Decimal,
pub min_borrow_rate: Decimal,
pub optimal_borrow_rate: Decimal,
pub optimal_utilisation_rate: Decimal,
}Expand description
RateParams
JSON schema
{
"type": "object",
"required": [
"max_borrow_rate",
"min_borrow_rate",
"optimal_borrow_rate",
"optimal_utilisation_rate"
],
"properties": {
"max_borrow_rate": {
"type": "string",
"format": "decimal"
},
"min_borrow_rate": {
"type": "string",
"format": "decimal"
},
"optimal_borrow_rate": {
"type": "string",
"format": "decimal"
},
"optimal_utilisation_rate": {
"type": "string",
"format": "decimal"
}
}
}Fields§
§max_borrow_rate: Decimal§min_borrow_rate: Decimal§optimal_borrow_rate: Decimal§optimal_utilisation_rate: DecimalTrait Implementations§
Source§impl Clone for RateParams
impl Clone for RateParams
Source§fn clone(&self) -> RateParams
fn clone(&self) -> RateParams
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 RateParams
impl Debug for RateParams
Source§impl<'de> Deserialize<'de> for RateParams
impl<'de> Deserialize<'de> for RateParams
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
Auto Trait Implementations§
impl Freeze for RateParams
impl RefUnwindSafe for RateParams
impl Send for RateParams
impl Sync for RateParams
impl Unpin for RateParams
impl UnsafeUnpin for RateParams
impl UnwindSafe for RateParams
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