pub struct JsonControlResponse {
pub ok: bool,
pub error: Option<String>,
pub memory: Option<MemoryState>,
pub cpu: Option<CpuState>,
pub capabilities: Option<Capabilities>,
pub control_protocols: Option<Vec<String>>,
}Expand description
Existing JSON response with an additive discovery advertisement.
Omission of control_protocols identifies an ordinary legacy response.
Raw JSON consumers must retain the original bytes to preserve unknown fields.
Fields§
§ok: boolWhether the operation succeeded.
error: Option<String>Legacy diagnostic; batch progress cannot be inferred from it.
memory: Option<MemoryState>Present for memory operations.
cpu: Option<CpuState>Present for CPU operations.
capabilities: Option<Capabilities>Present for capability discovery.
control_protocols: Option<Vec<String>>Explicit operation formats, emitted only during discovery.
Trait Implementations§
Source§impl Clone for JsonControlResponse
impl Clone for JsonControlResponse
Source§fn clone(&self) -> JsonControlResponse
fn clone(&self) -> JsonControlResponse
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 moreSource§impl Debug for JsonControlResponse
impl Debug for JsonControlResponse
Source§impl Default for JsonControlResponse
impl Default for JsonControlResponse
Source§fn default() -> JsonControlResponse
fn default() -> JsonControlResponse
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for JsonControlResponse
impl<'de> Deserialize<'de> for JsonControlResponse
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 JsonControlResponse
impl RefUnwindSafe for JsonControlResponse
impl Send for JsonControlResponse
impl Sync for JsonControlResponse
impl Unpin for JsonControlResponse
impl UnsafeUnpin for JsonControlResponse
impl UnwindSafe for JsonControlResponse
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