unofficial_appwrite/models/
topic.rs

1use serde::{Deserialize, Serialize};
2use serde_json::Value;
3
4/// Topic
5#[derive(Debug, Serialize, Deserialize, Clone, Default, PartialEq)]
6pub struct Topic {
7    /// Topic ID.
8    #[serde(rename = "$id")]
9    pub id: String,
10
11    /// Message creation time in ISO 8601 format.
12    #[serde(rename = "$createdAt")]
13    pub created_at: String,
14
15    /// Message update date in ISO 8601 format.
16    #[serde(rename = "$updatedAt")]
17    pub updated_at: String,
18
19    /// The name of the topic.
20    pub name: String,
21
22    /// Total count of email subscribers subscribed to the topic.
23    #[serde(rename = "emailTotal")]
24    pub email_total: usize,
25
26    /// Total count of SMS subscribers subscribed to the topic.
27    #[serde(rename = "smsTotal")]
28    pub sms_total: usize,
29
30    /// Total count of push subscribers subscribed to the topic.
31    #[serde(rename = "pushTotal")]
32    pub push_total: usize,
33
34    /// Subscribe permissions.
35    pub subscribe: Vec<Value>,
36}