pub enum ControlResponseKind {
Success {
request_id: String,
response: Value,
},
Error {
request_id: String,
error: String,
},
}Expand description
Response body, success or error.
Variants§
Success
Successful response. response carries the control-specific payload.
Fields
§
response: ValueThe nested payload (e.g. an AllowBehavior serialised to JSON).
Error
Error response. error is human-readable.
Trait Implementations§
Source§impl Clone for ControlResponseKind
impl Clone for ControlResponseKind
Source§impl Debug for ControlResponseKind
impl Debug for ControlResponseKind
Source§impl<'de> Deserialize<'de> for ControlResponseKind
impl<'de> Deserialize<'de> for ControlResponseKind
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 ControlResponseKind
impl RefUnwindSafe for ControlResponseKind
impl Send for ControlResponseKind
impl Sync for ControlResponseKind
impl Unpin for ControlResponseKind
impl UnsafeUnpin for ControlResponseKind
impl UnwindSafe for ControlResponseKind
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