Struct twitch_api::helix::chat::ChatSettings
source · [−]#[non_exhaustive]pub struct ChatSettings {
pub broadcaster_id: UserId,
pub emote_mode: bool,
pub follower_mode: bool,
pub follower_mode_duration: Option<u64>,
pub moderator_id: Option<UserId>,
pub non_moderator_chat_delay: Option<bool>,
pub non_moderator_chat_delay_duration: Option<u64>,
pub slow_mode: bool,
pub slow_mode_wait_time: Option<u64>,
pub subscriber_mode: bool,
pub unique_chat_mode: bool,
}
helix
only.Expand description
Chat settings
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.broadcaster_id: UserId
The ID of the broadcaster specified in the request.
emote_mode: bool
A Boolean value that determines whether chat messages must contain only emotes. Is true, if only messages that are 100% emotes are allowed; otherwise, false.
follower_mode: bool
A Boolean value that determines whether the broadcaster restricts the chat room to followers only, based on how long they’ve followed.
Is true, if the broadcaster restricts the chat room to followers only; otherwise, false.
See follower_mode_duration
for how long the followers must have followed the broadcaster to participate in the chat room.
follower_mode_duration: Option<u64>
The length of time, in minutes, that the followers must have followed the broadcaster to participate in the chat room. See follower_mode
.
Is null if follower_mode
is false.
moderator_id: Option<UserId>
The ID of the moderator specified in the request for chat settings.
non_moderator_chat_delay: Option<bool>
A Boolean value that determines whether the broadcaster adds a short delay before chat messages appear in the chat room. This gives chat moderators and bots a chance to remove them before viewers can see the message.
Is true, if the broadcaster applies a delay; otherwise, false.
See non_moderator_chat_delay_duration
for the length of the delay.
Notes
This field and non_moderator_chat_delay_duration
are not received when the request is made without a specified moderator_id
.
non_moderator_chat_delay_duration: Option<u64>
The amount of time, in seconds, that messages are delayed from appearing in chat. See non_moderator_chat_delay
.
Is null if non_moderator_chat_delay
is false.
slow_mode: bool
A Boolean value that determines whether the broadcaster limits how often users in the chat room are allowed to send messages.
Is true, if the broadcaster applies a delay; otherwise, false.
See slow_mode_wait_time
for the delay.
slow_mode_wait_time: Option<u64>
The amount of time, in seconds, that users need to wait between sending messages. See slow_mode.
Is null if slow_mode is false.
subscriber_mode: bool
A Boolean value that determines whether only users that subscribe to the broadcaster’s channel can talk in the chat room.
Is true, if the broadcaster restricts the chat room to subscribers only; otherwise, false.
unique_chat_mode: bool
A Boolean value that determines whether the broadcaster requires users to post only unique messages in the chat room.
Is true, if the broadcaster requires unique messages only; otherwise, false.
Trait Implementations
sourceimpl Clone for ChatSettings
impl Clone for ChatSettings
sourcefn clone(&self) -> ChatSettings
fn clone(&self) -> ChatSettings
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source
. Read moresourceimpl Debug for ChatSettings
impl Debug for ChatSettings
sourceimpl<'de> Deserialize<'de> for ChatSettings
impl<'de> Deserialize<'de> for ChatSettings
sourcefn 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>,
sourceimpl PartialEq<ChatSettings> for ChatSettings
impl PartialEq<ChatSettings> for ChatSettings
sourcefn eq(&self, other: &ChatSettings) -> bool
fn eq(&self, other: &ChatSettings) -> bool
sourceimpl Serialize for ChatSettings
impl Serialize for ChatSettings
impl Eq for ChatSettings
impl StructuralEq for ChatSettings
impl StructuralPartialEq for ChatSettings
Auto Trait Implementations
impl RefUnwindSafe for ChatSettings
impl Send for ChatSettings
impl Sync for ChatSettings
impl Unpin for ChatSettings
impl UnwindSafe for ChatSettings
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.