#[non_exhaustive]
pub struct UpdateChatSettingsBody { pub emote_mode: Option<bool>, pub follower_mode: Option<bool>, pub follower_mode_duration: Option<u64>, pub non_moderator_chat_delay: Option<bool>, pub non_moderator_chat_delay_duration: Option<u64>, pub slow_mode: Option<bool>, pub slow_mode_wait_time: Option<u64>, pub subscriber_mode: Option<bool>, pub unique_chat_mode: Option<bool>, }
Available on crate feature helix only.
Expand description

Fields (Non-exhaustive)

This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.
emote_mode: Option<bool>

A Boolean value that determines whether chat messages must contain only emotes.

Set to true, if only messages that are 100% emotes are allowed; otherwise, false. Default is false.

follower_mode: Option<bool>

A Boolean value that determines whether the broadcaster restricts the chat room to followers only, based on how long they’ve followed.

Set to true, if the broadcaster restricts the chat room to followers only; otherwise, false. Default is true.

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).

You may specify a value in the range: 0 (no restriction) through 129600 (3 months). The default is 0.

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.

Set to true, if the broadcaster applies a delay; otherwise, false. Default is false.

See non_moderator_chat_delay_duration for the length of the delay.

non_moderator_chat_delay_duration: Option<u64>

The amount of time, in seconds, that messages are delayed from appearing in chat.

Possible values are:

  • 2 — 2 second delay (recommended)
  • 4 — 4 second delay
  • 6 — 6 second delay

See non_moderator_chat_delay.

slow_mode: Option<bool>

A Boolean value that determines whether the broadcaster limits how often users in the chat room are allowed to send messages.

Set to true, if the broadcaster applies a wait period messages; otherwise, false. Default is 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).

You may specify a value in the range: 3 (3 second delay) through 120 (2 minute delay). The default is 30 seconds.

subscriber_mode: Option<bool>

A Boolean value that determines whether only users that subscribe to the broadcaster’s channel can talk in the chat room.

Set to true, if the broadcaster restricts the chat room to subscribers only; otherwise, false. Default is false.

unique_chat_mode: Option<bool>

A Boolean value that determines whether the broadcaster requires users to post only unique messages in the chat room.

Set to true, if the broadcaster requires unique messages only; otherwise, false. Default is false.

Implementations

Create a builder for building UpdateChatSettingsBody. On the builder, call .emote_mode(...)(optional), .follower_mode(...)(optional), .follower_mode_duration(...)(optional), .non_moderator_chat_delay(...)(optional), .non_moderator_chat_delay_duration(...)(optional), .slow_mode(...)(optional), .slow_mode_wait_time(...)(optional), .subscriber_mode(...)(optional), .unique_chat_mode(...)(optional) to set the values of the fields. Finally, call .build() to create the instance of UpdateChatSettingsBody.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Available on crate feature helix only.

Create the body

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more