pub struct CollateralMarginResult {
pub margin_bp: u64,
}Expand description
control.collateral.margin.get / .set — the node’s LOCAL safety margin.
.set returns the margin now in force, so a caller never has to re-read to learn what was
applied.
Fields§
§margin_bp: u64The margin in BASIS POINTS over the requirement (100 is +1%).
The unit is basis points and is never converted, because it is the unit
dig_mirror_collateral::apply_safety_margin takes and the one dig-app SPEC.md §3.7b
normatively fixes. A conversion performed independently by two surfaces is a money-path
drift bug.
Trait Implementations§
Source§impl Clone for CollateralMarginResult
impl Clone for CollateralMarginResult
Source§fn clone(&self) -> CollateralMarginResult
fn clone(&self) -> CollateralMarginResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CollateralMarginResult
Source§impl Debug for CollateralMarginResult
impl Debug for CollateralMarginResult
Source§impl<'de> Deserialize<'de> for CollateralMarginResult
impl<'de> Deserialize<'de> for CollateralMarginResult
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
impl Eq for CollateralMarginResult
Source§impl PartialEq for CollateralMarginResult
impl PartialEq for CollateralMarginResult
Source§impl Serialize for CollateralMarginResult
impl Serialize for CollateralMarginResult
impl StructuralPartialEq for CollateralMarginResult
Auto Trait Implementations§
impl Freeze for CollateralMarginResult
impl RefUnwindSafe for CollateralMarginResult
impl Send for CollateralMarginResult
impl Sync for CollateralMarginResult
impl Unpin for CollateralMarginResult
impl UnsafeUnpin for CollateralMarginResult
impl UnwindSafe for CollateralMarginResult
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