pub struct Bracket {
pub bracket: u32,
pub cum: f64,
pub initial_leverage: u32,
pub maint_margin_ratio: f64,
pub notional_cap: f64,
pub notional_floor: f64,
}Expand description
Bracket
JSON schema
{
"type": "object",
"required": [
"bracket",
"cum",
"initialLeverage",
"maintMarginRatio",
"notionalCap",
"notionalFloor"
],
"properties": {
"bracket": {
"type": "integer",
"format": "uint32",
"minimum": 0.0
},
"cum": {
"type": "number",
"format": "double"
},
"initialLeverage": {
"type": "integer",
"format": "uint32",
"minimum": 0.0
},
"maintMarginRatio": {
"type": "number",
"format": "double"
},
"notionalCap": {
"type": "number",
"format": "double"
},
"notionalFloor": {
"type": "number",
"format": "double"
}
}
}Fields§
§bracket: u32§cum: f64§initial_leverage: u32§maint_margin_ratio: f64§notional_cap: f64§notional_floor: f64Trait Implementations§
Source§impl<'de> Deserialize<'de> for Bracket
impl<'de> Deserialize<'de> for Bracket
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 Bracket
impl RefUnwindSafe for Bracket
impl Send for Bracket
impl Sync for Bracket
impl Unpin for Bracket
impl UnsafeUnpin for Bracket
impl UnwindSafe for Bracket
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