schul_cloud_api/networking/data/
conversation_info.rs1use serde::Deserialize;
2use serde_json::Value;
3use crate::networking::DetailedPersonInfo;
4
5#[derive(Deserialize, Clone, Debug)]
6pub struct Conversation {
7 pub id: String,
8 pub name: Option<String>,
9 pub created: Option<String>,
10 pub last_action: Option<String>,
11 pub last_activity: Option<String>,
12 pub encrypted: bool,
13 pub unique_identifier: Value,
14 pub unread_messages: u32,
15 pub key: Option<String>,
16 pub key_requested: Value,
17 pub key_signature: Value,
18 pub key_sender: Value,
19 pub signature_expiry: Value,
20 pub archive: Value,
21 pub favorite: bool,
22 pub deleted: Option<String>,
23 pub muted: Value,
24 pub user_count: u8,
25 pub members: Vec<DetailedPersonInfo>,
26 pub num_members_without_keys: u8,
27 pub members_without_keys: Vec<Value>,
28 pub callable: Vec<DetailedPersonInfo>,
29}