windmill-api 1.824.1

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
Documentation
/*
 * Windmill API
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 1.824.1
 * Contact: contact@windmill.dev
 * Generated by: https://openapi-generator.tech
 */

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

/// FlowConversationRunningTurn : The turn the conversation is still answering, set by the list endpoint: its newest user message, while the flow run it started is queued or running. A run into this conversation is refused with 409 until the turn ends.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct FlowConversationRunningTurn {
    /// The flow run of the turn
    #[serde(rename = "job_id")]
    pub job_id: uuid::Uuid,
    /// created_seq of the user message that started the turn
    #[serde(rename = "user_seq")]
    pub user_seq: i64,
}

impl FlowConversationRunningTurn {
    /// The turn the conversation is still answering, set by the list endpoint: its newest user message, while the flow run it started is queued or running. A run into this conversation is refused with 409 until the turn ends.
    pub fn new(job_id: uuid::Uuid, user_seq: i64) -> FlowConversationRunningTurn {
        FlowConversationRunningTurn {
            job_id,
            user_seq,
        }
    }
}