pub enum CommandResponse {
Success {
response: BodySpec,
},
Error {
code: String,
details: Option<String>,
message: String,
},
}Expand description
Command response from deployment
JSON schema
{
"description": "Command response from deployment",
"oneOf": [
{
"description": "Command executed successfully",
"type": "object",
"required": [
"response",
"status"
],
"properties": {
"response": {
"$ref": "#/components/schemas/BodySpec"
},
"status": {
"type": "string",
"enum": [
"success"
]
}
}
},
{
"description": "Command failed with an error",
"type": "object",
"required": [
"code",
"message",
"status"
],
"properties": {
"code": {
"description": "Error code",
"type": "string"
},
"details": {
"description": "Optional additional details",
"type": [
"string",
"null"
]
},
"message": {
"description": "Error message",
"type": "string"
},
"status": {
"type": "string",
"enum": [
"error"
]
}
}
}
]
}Variants§
Trait Implementations§
Source§impl Clone for CommandResponse
impl Clone for CommandResponse
Source§fn clone(&self) -> CommandResponse
fn clone(&self) -> CommandResponse
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 CommandResponse
impl Debug for CommandResponse
Source§impl<'de> Deserialize<'de> for CommandResponse
impl<'de> Deserialize<'de> for CommandResponse
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<&CommandResponse> for CommandResponse
impl From<&CommandResponse> for CommandResponse
Source§fn from(value: &CommandResponse) -> Self
fn from(value: &CommandResponse) -> Self
Converts to this type from the input type.
Source§impl From<CommandResponse> for SubmitResponseRequest
impl From<CommandResponse> for SubmitResponseRequest
Source§fn from(value: CommandResponse) -> Self
fn from(value: CommandResponse) -> Self
Converts to this type from the input type.
Source§impl From<SubmitResponseRequest> for CommandResponse
impl From<SubmitResponseRequest> for CommandResponse
Source§fn from(value: SubmitResponseRequest) -> Self
fn from(value: SubmitResponseRequest) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CommandResponse
impl RefUnwindSafe for CommandResponse
impl Send for CommandResponse
impl Sync for CommandResponse
impl Unpin for CommandResponse
impl UnsafeUnpin for CommandResponse
impl UnwindSafe for CommandResponse
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