hanzo-client 8.5.156

Generated client for the Hanzo API — every service, one crate.
Documentation
/*
 * 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 BotRun {
    /// RunID is the run's id in the bot runtime, and the node id its live VNC session is registered under.
    #[serde(rename = "runId", skip_serializing_if = "Option::is_none")]
    pub run_id: Option<String>,
    /// SessionURL is the live session the hanzo.app /vnc panel embeds to watch or attach to this run. Derived here from the run id, never sent by the runtime.
    #[serde(rename = "sessionUrl", skip_serializing_if = "Option::is_none")]
    pub session_url: Option<String>,
    /// StartedAt is when the run began, RFC 3339, as the runtime stamped it.
    #[serde(rename = "startedAt", skip_serializing_if = "Option::is_none")]
    pub started_at: Option<String>,
    /// Status is the run's state as the runtime reports it; \"running\" when the runtime names none of its own.
    #[serde(rename = "status", skip_serializing_if = "Option::is_none")]
    pub status: Option<String>,
    /// Surface is what the bot drives: the desktop or terminal sandbox it runs in.
    #[serde(rename = "surface", skip_serializing_if = "Option::is_none")]
    pub surface: Option<String>,
    /// Task is the instruction the bot is executing.
    #[serde(rename = "task", skip_serializing_if = "Option::is_none")]
    pub task: Option<String>,
}

impl BotRun {
    pub fn new() -> BotRun {
        BotRun {
            run_id: None,
            session_url: None,
            started_at: None,
            status: None,
            surface: None,
            task: None,
        }
    }
}