pub struct CommandStatusResponse {
pub attempt: i32,
pub command_id: String,
pub response: Option<CommandResponse>,
pub state: CommandState,
pub target: CommandTarget,
}Expand description
Response to status queries
JSON schema
{
"description": "Response to status queries",
"type": "object",
"required": [
"attempt",
"commandId",
"state",
"target"
],
"properties": {
"attempt": {
"description": "Current attempt number",
"type": "integer",
"format": "int32",
"minimum": 0.0
},
"commandId": {
"description": "Command identifier",
"type": "string"
},
"response": {
"description": "Response data (only for succeeded/failed state)",
"oneOf": [
{
"type": "null"
},
{
"allOf": [
{
"$ref": "#/components/schemas/CommandResponse"
}
]
}
]
},
"state": {
"$ref": "#/components/schemas/CommandState"
},
"target": {
"$ref": "#/components/schemas/CommandTarget"
}
}
}Fields§
§attempt: i32Current attempt number
command_id: StringCommand identifier
response: Option<CommandResponse>Response data (only for succeeded/failed state)
state: CommandState§target: CommandTargetImplementations§
Source§impl CommandStatusResponse
impl CommandStatusResponse
pub fn builder() -> CommandStatusResponse
Trait Implementations§
Source§impl Clone for CommandStatusResponse
impl Clone for CommandStatusResponse
Source§impl Debug for CommandStatusResponse
impl Debug for CommandStatusResponse
Source§impl<'de> Deserialize<'de> for CommandStatusResponse
impl<'de> Deserialize<'de> for CommandStatusResponse
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
Source§impl From<&CommandStatusResponse> for CommandStatusResponse
impl From<&CommandStatusResponse> for CommandStatusResponse
Source§fn from(value: &CommandStatusResponse) -> Self
fn from(value: &CommandStatusResponse) -> Self
Converts to this type from the input type.
Source§impl From<CommandStatusResponse> for CommandStatusResponse
impl From<CommandStatusResponse> for CommandStatusResponse
Source§fn from(value: CommandStatusResponse) -> Self
fn from(value: CommandStatusResponse) -> Self
Converts to this type from the input type.
Source§impl Serialize for CommandStatusResponse
impl Serialize for CommandStatusResponse
Source§impl TryFrom<CommandStatusResponse> for CommandStatusResponse
impl TryFrom<CommandStatusResponse> for CommandStatusResponse
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: CommandStatusResponse) -> Result<Self, ConversionError>
fn try_from(value: CommandStatusResponse) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Forget for CommandStatusResponse
impl Freeze for CommandStatusResponse
impl Move for CommandStatusResponse
impl RefUnwindSafe for CommandStatusResponse
impl Send for CommandStatusResponse
impl Sync for CommandStatusResponse
impl Unpin for CommandStatusResponse
impl UnsafeUnpin for CommandStatusResponse
impl UnwindSafe for CommandStatusResponse
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