pub struct LiveControlResponse {
pub ok: bool,
pub state: Option<String>,
pub reason: Option<String>,
pub orders: Vec<Value>,
pub operator_context: Option<OperatorContext>,
pub action: Option<String>,
pub risk_direction: Option<String>,
pub extra: BTreeMap<String, Value>,
}Expand description
Response body for live risk-reduction controls.
The live control endpoints intentionally use a broad response envelope:
/live/kill, /live/pause, /live/resume, /live/heartbeat, and
/live/flatten share ok / reason, while endpoint-specific details
such as exchange_cancel, exchange_dead_man, and flatten orders stay
in extra. This keeps the CLI honest without forcing it to mirror every
exchange adapter field.
Fields§
§ok: bool§state: Option<String>§reason: Option<String>§orders: Vec<Value>§operator_context: Option<OperatorContext>§action: Option<String>§risk_direction: Option<String>§extra: BTreeMap<String, Value>Trait Implementations§
Source§impl Clone for LiveControlResponse
impl Clone for LiveControlResponse
Source§fn clone(&self) -> LiveControlResponse
fn clone(&self) -> LiveControlResponse
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 LiveControlResponse
impl Debug for LiveControlResponse
Source§impl Default for LiveControlResponse
impl Default for LiveControlResponse
Source§fn default() -> LiveControlResponse
fn default() -> LiveControlResponse
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LiveControlResponsewhere
LiveControlResponse: Default,
impl<'de> Deserialize<'de> for LiveControlResponsewhere
LiveControlResponse: Default,
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 LiveControlResponse
impl RefUnwindSafe for LiveControlResponse
impl Send for LiveControlResponse
impl Sync for LiveControlResponse
impl Unpin for LiveControlResponse
impl UnsafeUnpin for LiveControlResponse
impl UnwindSafe for LiveControlResponse
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