hanzo_client/models/bot_run.rs
1/*
2 * Hanzo Cloud API
3 *
4 * 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/.
5 *
6 * The version of the OpenAPI document: v1
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct BotRun {
16 /// RunID is the run's id in the bot runtime, and the node id its live VNC session is registered under.
17 #[serde(rename = "runId", skip_serializing_if = "Option::is_none")]
18 pub run_id: Option<String>,
19 /// 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.
20 #[serde(rename = "sessionUrl", skip_serializing_if = "Option::is_none")]
21 pub session_url: Option<String>,
22 /// StartedAt is when the run began, RFC 3339, as the runtime stamped it.
23 #[serde(rename = "startedAt", skip_serializing_if = "Option::is_none")]
24 pub started_at: Option<String>,
25 /// Status is the run's state as the runtime reports it; \"running\" when the runtime names none of its own.
26 #[serde(rename = "status", skip_serializing_if = "Option::is_none")]
27 pub status: Option<String>,
28 /// Surface is what the bot drives: the desktop or terminal sandbox it runs in.
29 #[serde(rename = "surface", skip_serializing_if = "Option::is_none")]
30 pub surface: Option<String>,
31 /// Task is the instruction the bot is executing.
32 #[serde(rename = "task", skip_serializing_if = "Option::is_none")]
33 pub task: Option<String>,
34}
35
36impl BotRun {
37 pub fn new() -> BotRun {
38 BotRun {
39 run_id: None,
40 session_url: None,
41 started_at: None,
42 status: None,
43 surface: None,
44 task: None,
45 }
46 }
47}
48