#[non_exhaustive]pub struct UpdateUserChatColorRequest<'a> {
pub user_id: Cow<'a, UserIdRef>,
pub color: NamedUserColor<'a>,
}
Available on crate feature
helix
only.Expand description
Query Parameters for Update Chat Settings
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.user_id: Cow<'a, UserIdRef>
The ID of the user whose chat color you want to update.
color: NamedUserColor<'a>
The color to use for the user’s name in chat.
Implementations§
Source§impl<'a> UpdateUserChatColorRequest<'a>
impl<'a> UpdateUserChatColorRequest<'a>
Source§impl<'a> UpdateUserChatColorRequest<'a>
impl<'a> UpdateUserChatColorRequest<'a>
Sourcepub fn new(
user_id: impl IntoCow<'a, UserIdRef> + 'a,
color: NamedUserColor<'static>,
) -> Self
pub fn new( user_id: impl IntoCow<'a, UserIdRef> + 'a, color: NamedUserColor<'static>, ) -> Self
Update the users chat color
Trait Implementations§
Source§impl<'a> Clone for UpdateUserChatColorRequest<'a>
impl<'a> Clone for UpdateUserChatColorRequest<'a>
Source§fn clone(&self) -> UpdateUserChatColorRequest<'a>
fn clone(&self) -> UpdateUserChatColorRequest<'a>
Returns a copy 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<'a> Debug for UpdateUserChatColorRequest<'a>
impl<'a> Debug for UpdateUserChatColorRequest<'a>
Source§impl<'de: 'a, 'a> Deserialize<'de> for UpdateUserChatColorRequest<'a>
impl<'de: 'a, 'a> Deserialize<'de> for UpdateUserChatColorRequest<'a>
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
Source§impl<'a> PartialEq for UpdateUserChatColorRequest<'a>
impl<'a> PartialEq for UpdateUserChatColorRequest<'a>
Source§fn eq(&self, other: &UpdateUserChatColorRequest<'a>) -> bool
fn eq(&self, other: &UpdateUserChatColorRequest<'a>) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.Source§impl Request for UpdateUserChatColorRequest<'_>
impl Request for UpdateUserChatColorRequest<'_>
Source§const PATH: &'static str = "chat/color"
const PATH: &'static str = "chat/color"
The path to the endpoint relative to the helix root. eg.
channels
for Get Channel InformationSource§const SCOPE: Validator
const SCOPE: Validator
Available on crate feature
twitch_oauth2
only.Scopes needed for this endpoint
Source§type Response = UpdateUserChatColorResponse
type Response = UpdateUserChatColorResponse
Response type. twitch’s response will deserialize to this.
Source§const OPT_SCOPE: &'static [Scope] = _
const OPT_SCOPE: &'static [Scope] = _
Available on crate feature
twitch_oauth2
only.Optional scopes needed by this endpoint
Source§fn get_uri(&self) -> Result<Uri, InvalidUri>
fn get_uri(&self) -> Result<Uri, InvalidUri>
Returns full URI for the request, including query parameters.
Source§fn get_bare_uri() -> Result<Uri, InvalidUri>
fn get_bare_uri() -> Result<Uri, InvalidUri>
Returns bare URI for the request, NOT including query parameters.
Source§impl RequestPut for UpdateUserChatColorRequest<'_>
impl RequestPut for UpdateUserChatColorRequest<'_>
Source§fn parse_inner_response<'d>(
request: Option<Self>,
uri: &Uri,
response: &str,
status: StatusCode,
) -> Result<Response<Self, Self::Response>, HelixRequestPutError>where
Self: Sized,
fn parse_inner_response<'d>(
request: Option<Self>,
uri: &Uri,
response: &str,
status: StatusCode,
) -> Result<Response<Self, Self::Response>, HelixRequestPutError>where
Self: Sized,
Parse a response string into the response.
Source§fn create_request(
&self,
body: Self::Body,
token: &str,
client_id: &str,
) -> Result<Request<Bytes>, CreateRequestError>
fn create_request( &self, body: Self::Body, token: &str, client_id: &str, ) -> Result<Request<Bytes>, CreateRequestError>
Create a
http::Request
from this Request
in your clientSource§impl<'a> Serialize for UpdateUserChatColorRequest<'a>
impl<'a> Serialize for UpdateUserChatColorRequest<'a>
impl<'a> Eq for UpdateUserChatColorRequest<'a>
impl<'a> StructuralPartialEq for UpdateUserChatColorRequest<'a>
Auto Trait Implementations§
impl<'a> Freeze for UpdateUserChatColorRequest<'a>
impl<'a> RefUnwindSafe for UpdateUserChatColorRequest<'a>
impl<'a> Send for UpdateUserChatColorRequest<'a>
impl<'a> Sync for UpdateUserChatColorRequest<'a>
impl<'a> Unpin for UpdateUserChatColorRequest<'a>
impl<'a> UnwindSafe for UpdateUserChatColorRequest<'a>
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