pub struct CommandStatusResponse {
pub attempt: i32,
pub command_id: String,
pub response: Option<CommandResponse>,
pub state: CommandState,
}Expand description
Response to status queries
JSON schema
{
"description": "Response to status queries",
"type": "object",
"required": [
"attempt",
"commandId",
"state"
],
"properties": {
"attempt": {
"description": "Current attempt number",
"type": "integer",
"format": "int32",
"minimum": 0.0
},
"commandId": {
"description": "Command identifier",
"type": "string"
},
"response": {
"$ref": "#/components/schemas/CommandResponse"
},
"state": {
"$ref": "#/components/schemas/CommandState"
}
}
}Fields§
§attempt: i32Current attempt number
command_id: StringCommand identifier
response: Option<CommandResponse>§state: CommandStateImplementations§
Source§impl CommandStatusResponse
impl CommandStatusResponse
pub fn builder() -> CommandStatusResponse
Trait Implementations§
Source§impl Clone for CommandStatusResponse
impl Clone for CommandStatusResponse
Source§fn clone(&self) -> CommandStatusResponse
fn clone(&self) -> CommandStatusResponse
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 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 Freeze 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