pub struct ChannelSettings {Show 13 fields
pub topic: Option<String>,
pub topic_set_by: Option<(String, SystemTime)>,
pub modes: HashSet<ChannelMode>,
pub member_limit: Option<usize>,
pub password: Option<String>,
pub invite_list: HashSet<String>,
pub exception_list: HashSet<String>,
pub quiet_list: HashSet<String>,
pub rate_limit: Option<RateLimit>,
pub key_rotation_interval: Option<u64>,
pub history_retention: Option<u64>,
pub created_at: SystemTime,
pub last_activity: SystemTime,
}Expand description
Comprehensive channel settings
Fieldsยง
ยงtopic: Option<String>Channel topic
topic_set_by: Option<(String, SystemTime)>Topic set by (user and timestamp)
modes: HashSet<ChannelMode>Active channel modes
member_limit: Option<usize>Maximum number of members
password: Option<String>Channel password/key
invite_list: HashSet<String>Invite-only list
exception_list: HashSet<String>Exception list (users who can bypass bans)
quiet_list: HashSet<String>Quiet list (users who cannot speak)
rate_limit: Option<RateLimit>Rate limiting settings
key_rotation_interval: Option<u64>Key rotation interval in seconds
history_retention: Option<u64>Message history retention
created_at: SystemTimeChannel creation time
last_activity: SystemTimeLast activity time
Trait Implementationsยง
Sourceยงimpl Clone for ChannelSettings
impl Clone for ChannelSettings
Sourceยงfn clone(&self) -> ChannelSettings
fn clone(&self) -> ChannelSettings
Returns a duplicate of the value. Read more
1.0.0 ยท Sourceยงfn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSourceยงimpl Debug for ChannelSettings
impl Debug for ChannelSettings
Sourceยงimpl Default for ChannelSettings
impl Default for ChannelSettings
Sourceยงimpl<'de> Deserialize<'de> for ChannelSettings
impl<'de> Deserialize<'de> for ChannelSettings
Sourceยงfn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementationsยง
impl Freeze for ChannelSettings
impl RefUnwindSafe for ChannelSettings
impl Send for ChannelSettings
impl Sync for ChannelSettings
impl Unpin for ChannelSettings
impl UnsafeUnpin for ChannelSettings
impl UnwindSafe for ChannelSettings
Blanket Implementationsยง
Sourceยงimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Sourceยงfn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more