pub struct AutoToggleResponse {
pub state: AutoState,
pub simulated: bool,
pub reason: Option<String>,
pub extra: BTreeMap<String, Value>,
}Expand description
Response body for POST /auto/toggle.
state is the engine’s post-call Auto-mode state. simulated
is the paper-mode discriminator — in paper mode the flip is a
bookkeeping change but the downstream fills stay simulated, so
the CLI tags the operator-visible confirmation with (paper)
to keep that distinction loud.
reason carries an engine-provided explanation on refusal
(e.g. “operator state is TILT”); None on the happy path.
Fields§
§state: AutoState§simulated: bool§reason: Option<String>§extra: BTreeMap<String, Value>Trait Implementations§
Source§impl Clone for AutoToggleResponse
impl Clone for AutoToggleResponse
Source§fn clone(&self) -> AutoToggleResponse
fn clone(&self) -> AutoToggleResponse
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 AutoToggleResponse
impl Debug for AutoToggleResponse
Source§impl<'de> Deserialize<'de> for AutoToggleResponse
impl<'de> Deserialize<'de> for AutoToggleResponse
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 AutoToggleResponse
impl RefUnwindSafe for AutoToggleResponse
impl Send for AutoToggleResponse
impl Sync for AutoToggleResponse
impl Unpin for AutoToggleResponse
impl UnsafeUnpin for AutoToggleResponse
impl UnwindSafe for AutoToggleResponse
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