zulip_api/message/channel_permission/
can_resolve_topics_group.rs1use serde::{Deserialize, Serialize};
2
3use crate::{impl_cow, GroupSetting};
4
5#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
11pub struct CanResolveTopicsGroup(pub GroupSetting);
12
13impl CanResolveTopicsGroup {
14 pub const fn new() -> Self {
16 Self(GroupSetting::new())
17 }
18
19 pub const fn from_inner(val: GroupSetting) -> Self {
21 Self(val)
22 }
23
24 pub fn into_inner(self) -> GroupSetting {
26 self.0
27 }
28}
29
30impl Default for CanResolveTopicsGroup {
31 fn default() -> Self {
32 Self::new()
33 }
34}
35
36impl_cow!(CanResolveTopicsGroup);