pub struct ChatroomInfo {
pub id: u64,
pub channel_id: Option<u64>,
pub chat_mode: Option<String>,
pub slow_mode: bool,
pub followers_mode: bool,
pub subscribers_mode: bool,
pub emotes_mode: bool,
pub message_interval: u32,
pub following_min_duration: u32,
}Expand description
Chatroom settings for a channel.
Fields§
§id: u64Unique chatroom identifier (used for WebSocket subscription)
channel_id: Option<u64>Channel ID this chatroom belongs to
chat_mode: Option<String>Chat mode: “public”, “followers”, “subscribers”
slow_mode: boolWhether slow mode is enabled
followers_mode: boolWhether followers-only mode is enabled
subscribers_mode: boolWhether subscribers-only mode is enabled
emotes_mode: boolWhether emotes-only mode is enabled
message_interval: u32Minimum seconds between messages (slow mode interval)
following_min_duration: u32Minimum follow duration in minutes to chat (when followers mode is on)
Trait Implementations§
Source§impl Clone for ChatroomInfo
impl Clone for ChatroomInfo
Source§fn clone(&self) -> ChatroomInfo
fn clone(&self) -> ChatroomInfo
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 ChatroomInfo
impl Debug for ChatroomInfo
Source§impl<'de> Deserialize<'de> for ChatroomInfo
impl<'de> Deserialize<'de> for ChatroomInfo
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 ChatroomInfo
impl RefUnwindSafe for ChatroomInfo
impl Send for ChatroomInfo
impl Sync for ChatroomInfo
impl Unpin for ChatroomInfo
impl UnsafeUnpin for ChatroomInfo
impl UnwindSafe for ChatroomInfo
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