langgraph-api 0.1.1

Rust Client API of LangGraph
Documentation
/*
 * LangSmith Deployment
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 0.1.0
 *
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

/// Command : The command to run.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct Command {
    /// An update to the state.
    #[serde(
        rename = "update",
        default,
        with = "::serde_with::rust::double_option",
        skip_serializing_if = "Option::is_none"
    )]
    pub update: Option<Option<serde_json::Value>>,
    #[serde(
        rename = "resume",
        default,
        with = "::serde_with::rust::double_option",
        skip_serializing_if = "Option::is_none"
    )]
    pub resume: Option<Option<Box<models::Resume>>>,
    #[serde(
        rename = "goto",
        default,
        with = "::serde_with::rust::double_option",
        skip_serializing_if = "Option::is_none"
    )]
    pub goto: Option<Option<Box<models::Goto>>>,
}

impl Command {
    /// The command to run.
    pub fn new() -> Command {
        Command {
            update: None,
            resume: None,
            goto: None,
        }
    }
}