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>,
#[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,
}
}
}