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};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct PostA2a200Response {
    #[serde(rename = "jsonrpc")]
    pub jsonrpc: Jsonrpc,
    #[serde(rename = "id")]
    pub id: String,
    /// Success result containing task information or task details
    #[serde(rename = "result", skip_serializing_if = "Option::is_none")]
    pub result: Option<serde_json::Value>,
    #[serde(rename = "error", skip_serializing_if = "Option::is_none")]
    pub error: Option<Box<models::PostA2a200ResponseError>>,
}

impl PostA2a200Response {
    pub fn new(jsonrpc: Jsonrpc, id: String) -> PostA2a200Response {
        PostA2a200Response {
            jsonrpc,
            id,
            result: None,
            error: None,
        }
    }
}
#[derive(
    Clone, Copy, Debug, Default, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize,
)]
pub enum Jsonrpc {
    #[serde(rename = "2.0")]
    #[default]
    Variant20,
}