Struct twitch_api2::helix::chat::update_chat_settings::UpdateChatSettingsBody
source · [−]#[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>,
}
helix
only.Expand description
Body Parameters for Update Chat Settingss
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.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
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
sourceimpl UpdateChatSettingsBody
impl UpdateChatSettingsBody
sourcepub fn builder(
) -> UpdateChatSettingsBodyBuilder<((), (), (), (), (), (), (), (), ())>
pub fn builder(
) -> UpdateChatSettingsBodyBuilder<((), (), (), (), (), (), (), (), ())>
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
sourceimpl Clone for UpdateChatSettingsBody
impl Clone for UpdateChatSettingsBody
sourcefn clone(&self) -> UpdateChatSettingsBody
fn clone(&self) -> UpdateChatSettingsBody
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for UpdateChatSettingsBody
impl Debug for UpdateChatSettingsBody
sourceimpl<'de> Deserialize<'de> for UpdateChatSettingsBody
impl<'de> Deserialize<'de> for UpdateChatSettingsBody
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>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<UpdateChatSettingsBody> for UpdateChatSettingsBody
impl PartialEq<UpdateChatSettingsBody> for UpdateChatSettingsBody
sourcefn eq(&self, other: &UpdateChatSettingsBody) -> bool
fn eq(&self, other: &UpdateChatSettingsBody) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &UpdateChatSettingsBody) -> bool
fn ne(&self, other: &UpdateChatSettingsBody) -> bool
This method tests for !=
.
sourceimpl Serialize for UpdateChatSettingsBody
impl Serialize for UpdateChatSettingsBody
impl StructuralPartialEq for UpdateChatSettingsBody
Auto Trait Implementations
impl RefUnwindSafe for UpdateChatSettingsBody
impl Send for UpdateChatSettingsBody
impl Sync for UpdateChatSettingsBody
impl Unpin for UpdateChatSettingsBody
impl UnwindSafe for UpdateChatSettingsBody
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> HelixRequestBody for T where
T: Serialize + SealedSerialize,
impl<T> HelixRequestBody for T where
T: Serialize + SealedSerialize,
sourcefn try_to_body(&self) -> Result<Bytes, BodyError>
fn try_to_body(&self) -> Result<Bytes, BodyError>
helix
only.Create the body
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more