/*
* Hanzo Cloud API
*
* The Hanzo Cloud API as a customer calls it: every operation under /v1/ except the operator's admin product, relay routes, legacy spellings and capabilities still reached by flag. Tagged by product: the first path segment after /v1/.
*
* The version of the OpenAPI document: v1
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ExecResult {
/// ExitCode is the command's own exit status. A non-zero one is a SUCCESSFUL call carrying a failed command — the HTTP status stays 200, because \"the command failed\" and \"the call failed\" are different facts and a caller has to be able to tell them apart.
#[serde(rename = "exitCode", skip_serializing_if = "Option::is_none")]
pub exit_code: Option<i32>,
/// Stderr is everything it wrote to standard error. It is populated on a successful run too — plenty of tools report progress there — so it is not a signal that anything went wrong; ExitCode is.
#[serde(rename = "stderr", skip_serializing_if = "Option::is_none")]
pub stderr: Option<String>,
/// Stdout is everything the command wrote to standard output, as text.
#[serde(rename = "stdout", skip_serializing_if = "Option::is_none")]
pub stdout: Option<String>,
}
impl ExecResult {
pub fn new() -> ExecResult {
ExecResult {
exit_code: None,
stderr: None,
stdout: None,
}
}
}