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 RoutedRunOut {
    /// Base is the branch to start FROM. Empty means the repository's default — resolve it on the machine, since the machine is the one holding the clone.
    #[serde(rename = "base", skip_serializing_if = "Option::is_none")]
    pub base: Option<String>,
    /// Branch is the ref the run must push its work to, and the ONLY one it is permitted to write: the forge's ref policy refuses anything else from this run's credential. It is decided at dispatch and exists before the work does.
    #[serde(rename = "branch", skip_serializing_if = "Option::is_none")]
    pub branch: Option<String>,
    /// CloneURL is how to fetch the repository. It carries NO credential — the machine authenticates with the git identity it already holds — which is why this whole shape is safe to hand to a claimed runner.
    #[serde(rename = "cloneUrl", skip_serializing_if = "Option::is_none")]
    pub clone_url: Option<String>,
    /// Project is the product slug the run is filed under, so the machine can tag what it produces. Empty when the dispatch named none.
    #[serde(rename = "project", skip_serializing_if = "Option::is_none")]
    pub project: Option<String>,
    /// Prompt is the task, in full, as the person wrote it. There is no second field for context.
    #[serde(rename = "prompt", skip_serializing_if = "Option::is_none")]
    pub prompt: Option<String>,
    /// Repo is the repository to work in and CloneURL is how to fetch it.
    #[serde(rename = "repo", skip_serializing_if = "Option::is_none")]
    pub repo: Option<String>,
    /// SessionID is the live session opened at dispatch; the machine streams its turns into it.
    #[serde(rename = "sessionId", skip_serializing_if = "Option::is_none")]
    pub session_id: Option<String>,
    /// TimeoutSeconds bounds the run on the machine; 0 means the machine's own default.
    #[serde(rename = "timeoutSeconds", skip_serializing_if = "Option::is_none")]
    pub timeout_seconds: Option<i32>,
}

impl RoutedRunOut {
    pub fn new() -> RoutedRunOut {
        RoutedRunOut {
            base: None,
            branch: None,
            clone_url: None,
            project: None,
            prompt: None,
            repo: None,
            session_id: None,
            timeout_seconds: None,
        }
    }
}