revolt_api/models/
channel_unread__id.rs

1/*
2 * Revolt API
3 *
4 * Open source user-first chat platform.
5 *
6 * The version of the OpenAPI document: 0.6.5
7 * Contact: contact@revolt.chat
8 * Generated by: https://openapi-generator.tech
9 */
10
11/// ChannelUnreadId : Composite key pointing to a user's view of a channel
12
13
14
15#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
16pub struct ChannelUnreadId {
17    /// Channel Id
18    #[serde(rename = "channel")]
19    pub channel: String,
20    /// User Id
21    #[serde(rename = "user")]
22    pub user: String,
23}
24
25impl ChannelUnreadId {
26    /// Composite key pointing to a user's view of a channel
27    pub fn new(channel: String, user: String) -> ChannelUnreadId {
28        ChannelUnreadId {
29            channel,
30            user,
31        }
32    }
33}
34
35