1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/*
* 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,
}
}
}