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 JourneyStep {
    /// Args are the tool's default arguments, merged under whatever the caller passes at run time, so a step ships with the arguments that make it work.
    #[serde(rename = "args", skip_serializing_if = "Option::is_none")]
    pub args: Option<std::collections::HashMap<String, serde_json::Value>>,
    /// Dependencies are step ids that must be done/skipped before this step is available. The wire key is `deps` (the blueprint contract); the Go field keeps its descriptive name.
    #[serde(rename = "deps", skip_serializing_if = "Option::is_none")]
    pub deps: Option<Vec<String>>,
    /// Detail is the juncture — what the Guide explains, or asks for, at this step.
    #[serde(rename = "detail", skip_serializing_if = "Option::is_none")]
    pub detail: Option<String>,
    /// Draft, when set, is the prompt the embedded AI answers first; its output is folded into one of Args before the tool runs, so the model writes the content and the tool only delivers it.
    #[serde(rename = "draft", skip_serializing_if = "Option::is_none")]
    pub draft: Option<String>,
    /// DraftInto names the argument the drafted text lands in. Empty means \"brief\".
    #[serde(rename = "draftInto", skip_serializing_if = "Option::is_none")]
    pub draft_into: Option<String>,
    /// Enabled is the admin on/off lever. A NIL pointer reads as ENABLED (absence == on): a legacy/org curriculum that omits the field keeps every step, and only an explicit `enabled: false` (an admin disable) drops a step from the journey. See on() in blueprint.go and the Blueprint.Curriculum() projection.
    #[serde(rename = "enabled", skip_serializing_if = "Option::is_none")]
    pub enabled: Option<bool>,
    /// ID is the stable slug the whole plane addresses this step by — the value in `deps`, in `next`, in the progress rows, and in the URL of every step route. Renaming it orphans an org's recorded progress for this step.
    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
    pub id: Option<String>,
    /// Section is the id of the phase this step groups under. A disabled section takes its steps out of the journey with it.
    #[serde(rename = "section", skip_serializing_if = "Option::is_none")]
    pub section: Option<String>,
    /// Signal, when set, names a machine detector (detect.go). When the detector reports the org's real state present, the step auto-marks done.
    #[serde(rename = "signal", skip_serializing_if = "Option::is_none")]
    pub signal: Option<String>,
    /// Title is the one-line quest as a person reads it in the checklist.
    #[serde(rename = "title", skip_serializing_if = "Option::is_none")]
    pub title: Option<String>,
    /// Tool, when set, names the MCP tool the Business AI runs for \"do it for me\". A step with no tool can only be completed by a person; it is the field the `automatable` flag on every projection of this step is derived from.
    #[serde(rename = "tool", skip_serializing_if = "Option::is_none")]
    pub tool: Option<String>,
}

impl JourneyStep {
    pub fn new() -> JourneyStep {
        JourneyStep {
            args: None,
            deps: None,
            detail: None,
            draft: None,
            draft_into: None,
            enabled: None,
            id: None,
            section: None,
            signal: None,
            title: None,
            tool: None,
        }
    }
}