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 #[serde(rename = "mine")]
35 pub mine: bool,
36}
37
38impl GetSharedAiSession200Response {
39 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, mine: bool) -> GetSharedAiSession200Response {
40 GetSharedAiSession200Response {
41 id,
42 name,
43 is_public,
44 message_count,
45 created_by,
46 shared_at,
47 snapshot,
48 can_unshare,
49 mine,
50 }
51 }
52}
53