pub struct Mutations { /* private fields */ }Expand description
Collected mutations registered during pre-trade checks.
§Examples
use openpit::pretrade::{Mutation, Mutations, RiskMutation};
let mut mutations = Mutations::new();
mutations.push(Mutation {
commit: RiskMutation::SetKillSwitch { id: "guard", enabled: true },
rollback: RiskMutation::SetKillSwitch { id: "guard", enabled: false },
});Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Mutations
impl RefUnwindSafe for Mutations
impl Send for Mutations
impl Sync for Mutations
impl Unpin for Mutations
impl UnsafeUnpin for Mutations
impl UnwindSafe for Mutations
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