windmill-api 1.841.0

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.841.0
 * Contact: contact@windmill.dev
 * Generated by: https://openapi-generator.tech
 */

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

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct GetSharedAiSession200Response {
    #[serde(rename = "id")]
    pub id: uuid::Uuid,
    #[serde(rename = "name")]
    pub name: String,
    #[serde(rename = "is_public")]
    pub is_public: bool,
    #[serde(rename = "message_count")]
    pub message_count: i32,
    #[serde(rename = "created_by")]
    pub created_by: String,
    #[serde(rename = "shared_at")]
    pub shared_at: String,
    #[serde(rename = "snapshot")]
    pub snapshot: std::collections::HashMap<String, serde_json::Value>,
    /// whether the caller authored the share or is a workspace admin
    #[serde(rename = "can_unshare")]
    pub can_unshare: bool,
}

impl GetSharedAiSession200Response {
    pub fn new(id: uuid::Uuid, name: String, is_public: bool, message_count: i32, created_by: String, shared_at: String, snapshot: std::collections::HashMap<String, serde_json::Value>, can_unshare: bool) -> GetSharedAiSession200Response {
        GetSharedAiSession200Response {
            id,
            name,
            is_public,
            message_count,
            created_by,
            shared_at,
            snapshot,
            can_unshare,
        }
    }
}