langgraph_api/generated/models/
command.rs

1/*
2 * LangSmith Deployment
3 *
4 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5 *
6 * The version of the OpenAPI document: 0.1.0
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// Command : The command to run.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct Command {
17    /// An update to the state.
18    #[serde(
19        rename = "update",
20        default,
21        with = "::serde_with::rust::double_option",
22        skip_serializing_if = "Option::is_none"
23    )]
24    pub update: Option<Option<serde_json::Value>>,
25    #[serde(
26        rename = "resume",
27        default,
28        with = "::serde_with::rust::double_option",
29        skip_serializing_if = "Option::is_none"
30    )]
31    pub resume: Option<Option<Box<models::Resume>>>,
32    #[serde(
33        rename = "goto",
34        default,
35        with = "::serde_with::rust::double_option",
36        skip_serializing_if = "Option::is_none"
37    )]
38    pub goto: Option<Option<Box<models::Goto>>>,
39}
40
41impl Command {
42    /// The command to run.
43    pub fn new() -> Command {
44        Command {
45            update: None,
46            resume: None,
47            goto: None,
48        }
49    }
50}