#[non_exhaustive]pub struct GetContentClassificationLabelsRequest<'a> {
pub locale: Option<Cow<'a, str>>,
}
Available on crate feature
helix
only.Expand description
Query Parameters for Get Content Classification Labels
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.locale: Option<Cow<'a, str>>
Locale for the Content Classification Labels. You may specify a maximum of 1 locale. Default: "en-US"
Supported locales: "bg-BG", "cs-CZ", "da-DK", "da-DK", "de-DE", "el-GR", "en-GB", "en-US", "es-ES", "es-MX", "fi-FI", "fr-FR", "hu-HU", "it-IT", "ja-JP", "ko-KR", "nl-NL", "no-NO", "pl-PL", "pt-BT", "pt-PT", "ro-RO", "ru-RU", "sk-SK", "sv-SE", "th-TH", "tr-TR", "vi-VN", "zh-CN", "zh-TW"
Implementations§
Source§impl<'a> GetContentClassificationLabelsRequest<'a>
impl<'a> GetContentClassificationLabelsRequest<'a>
Sourcepub fn builder() -> GetContentClassificationLabelsRequestBuilder<'a, ((),)>
pub fn builder() -> GetContentClassificationLabelsRequestBuilder<'a, ((),)>
Create a builder for building GetContentClassificationLabelsRequest
.
On the builder, call .locale(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of GetContentClassificationLabelsRequest
.
Trait Implementations§
Source§impl<'a> Clone for GetContentClassificationLabelsRequest<'a>
impl<'a> Clone for GetContentClassificationLabelsRequest<'a>
Source§fn clone(&self) -> GetContentClassificationLabelsRequest<'a>
fn clone(&self) -> GetContentClassificationLabelsRequest<'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 GetContentClassificationLabelsRequest<'a>
impl<'a> Debug for GetContentClassificationLabelsRequest<'a>
Source§impl<'a> Default for GetContentClassificationLabelsRequest<'a>
impl<'a> Default for GetContentClassificationLabelsRequest<'a>
Source§fn default() -> GetContentClassificationLabelsRequest<'a>
fn default() -> GetContentClassificationLabelsRequest<'a>
Returns the “default value” for a type. Read more
Source§impl<'de: 'a, 'a> Deserialize<'de> for GetContentClassificationLabelsRequest<'a>
impl<'de: 'a, 'a> Deserialize<'de> for GetContentClassificationLabelsRequest<'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 GetContentClassificationLabelsRequest<'a>
impl<'a> PartialEq for GetContentClassificationLabelsRequest<'a>
Source§fn eq(&self, other: &GetContentClassificationLabelsRequest<'a>) -> bool
fn eq(&self, other: &GetContentClassificationLabelsRequest<'a>) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.Source§impl Request for GetContentClassificationLabelsRequest<'_>
impl Request for GetContentClassificationLabelsRequest<'_>
Source§const PATH: &'static str = "content_classification_labels"
const PATH: &'static str = "content_classification_labels"
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 = Vec<ContentClassificationLabel>
type Response = Vec<ContentClassificationLabel>
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 RequestGet for GetContentClassificationLabelsRequest<'_>
impl RequestGet for GetContentClassificationLabelsRequest<'_>
Source§fn create_request(
&self,
token: &str,
client_id: &str,
) -> Result<Request<Bytes>, CreateRequestError>
fn create_request( &self, token: &str, client_id: &str, ) -> Result<Request<Bytes>, CreateRequestError>
Create a
http::Request
from this Request
in your clientSource§fn parse_response<B: Into<Bytes>>(
request: Option<Self>,
uri: &Uri,
response: Response<B>,
) -> Result<Response<Self, <Self as Request>::Response>, HelixRequestGetError>where
Self: Sized,
fn parse_response<B: Into<Bytes>>(
request: Option<Self>,
uri: &Uri,
response: Response<B>,
) -> Result<Response<Self, <Self as Request>::Response>, HelixRequestGetError>where
Self: Sized,
Parse response. Read more
Source§fn parse_inner_response(
request: Option<Self>,
uri: &Uri,
response: &str,
status: StatusCode,
) -> Result<Response<Self, <Self as Request>::Response>, HelixRequestGetError>where
Self: Sized,
fn parse_inner_response(
request: Option<Self>,
uri: &Uri,
response: &str,
status: StatusCode,
) -> Result<Response<Self, <Self as Request>::Response>, HelixRequestGetError>where
Self: Sized,
Parse a response string into the response.
Source§impl<'a> Serialize for GetContentClassificationLabelsRequest<'a>
impl<'a> Serialize for GetContentClassificationLabelsRequest<'a>
impl<'a> Eq for GetContentClassificationLabelsRequest<'a>
impl<'a> StructuralPartialEq for GetContentClassificationLabelsRequest<'a>
Auto Trait Implementations§
impl<'a> Freeze for GetContentClassificationLabelsRequest<'a>
impl<'a> RefUnwindSafe for GetContentClassificationLabelsRequest<'a>
impl<'a> Send for GetContentClassificationLabelsRequest<'a>
impl<'a> Sync for GetContentClassificationLabelsRequest<'a>
impl<'a> Unpin for GetContentClassificationLabelsRequest<'a>
impl<'a> UnwindSafe for GetContentClassificationLabelsRequest<'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