windmill_api/models/
get_shared_ai_session_200_response.rs1use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct GetSharedAiSession200Response {
16 #[serde(rename = "id")]
17 pub id: uuid::Uuid,
18 #[serde(rename = "name")]
19 pub name: String,
20 #[serde(rename = "is_public")]
21 pub is_public: bool,
22 #[serde(rename = "message_count")]
23 pub message_count: i32,
24 #[serde(rename = "created_by")]
25 pub created_by: String,
26 #[serde(rename = "shared_at")]
27 pub shared_at: String,
28 #[serde(rename = "snapshot")]
29 pub snapshot: std::collections::HashMap<String, serde_json::Value>,
30 #[serde(rename = "can_unshare")]
32 pub can_unshare: bool,
33}
34
35impl GetSharedAiSession200Response {
36 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 {
37 GetSharedAiSession200Response {
38 id,
39 name,
40 is_public,
41 message_count,
42 created_by,
43 shared_at,
44 snapshot,
45 can_unshare,
46 }
47 }
48}
49