pub struct ChannelSettings {
pub allow_threads: bool,
pub allow_reactions: bool,
pub allow_files: bool,
pub allow_voice_video: bool,
pub message_retention_days: Option<u32>,
pub max_message_length: usize,
pub slow_mode_seconds: Option<u32>,
}Expand description
Channel settings
Fields§
§allow_threads: bool§allow_reactions: bool§allow_files: bool§allow_voice_video: bool§message_retention_days: Option<u32>§max_message_length: usize§slow_mode_seconds: Option<u32>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§const fn clone_from(&mut self, source: &Self)
const 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 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