#[non_exhaustive]pub struct StartCommercialRequest<'a> { /* private fields */ }
Available on crate feature
helix
only.Expand description
Query Parameters for Start Commercial
Implementations§
Source§impl StartCommercialRequest<'_>
impl StartCommercialRequest<'_>
Sourcepub fn new() -> Self
pub fn new() -> Self
Create a new StartCommercialRequest
Trait Implementations§
Source§impl<'a> Clone for StartCommercialRequest<'a>
impl<'a> Clone for StartCommercialRequest<'a>
Source§fn clone(&self) -> StartCommercialRequest<'a>
fn clone(&self) -> StartCommercialRequest<'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 StartCommercialRequest<'a>
impl<'a> Debug for StartCommercialRequest<'a>
Source§impl<'a> Default for StartCommercialRequest<'a>
impl<'a> Default for StartCommercialRequest<'a>
Source§fn default() -> StartCommercialRequest<'a>
fn default() -> StartCommercialRequest<'a>
Returns the “default value” for a type. Read more
Source§impl<'de, 'a> Deserialize<'de> for StartCommercialRequest<'a>
impl<'de, 'a> Deserialize<'de> for StartCommercialRequest<'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 StartCommercialRequest<'a>
impl<'a> PartialEq for StartCommercialRequest<'a>
Source§impl Request for StartCommercialRequest<'_>
impl Request for StartCommercialRequest<'_>
Source§type Response = Vec<StartCommercial>
type Response = Vec<StartCommercial>
FIXME: Make non-vec
Source§const PATH: &'static str = "channels/commercial"
const PATH: &'static str = "channels/commercial"
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§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<'a> RequestPost for StartCommercialRequest<'a>
impl<'a> RequestPost for StartCommercialRequest<'a>
Source§type Body = StartCommercialBody<'a>
type Body = StartCommercialBody<'a>
Body parameters
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§fn parse_response<B: Into<Bytes>>(
request: Option<Self>,
uri: &Uri,
response: Response<B>,
) -> Result<Response<Self, <Self as Request>::Response>, HelixRequestPostError>where
Self: Sized,
fn parse_response<B: Into<Bytes>>(
request: Option<Self>,
uri: &Uri,
response: Response<B>,
) -> Result<Response<Self, <Self as Request>::Response>, HelixRequestPostError>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>, HelixRequestPostError>where
Self: Sized,
fn parse_inner_response(
request: Option<Self>,
uri: &Uri,
response: &str,
status: StatusCode,
) -> Result<Response<Self, <Self as Request>::Response>, HelixRequestPostError>where
Self: Sized,
Parse a response string into the response.
Source§impl<'a> Serialize for StartCommercialRequest<'a>
impl<'a> Serialize for StartCommercialRequest<'a>
impl<'a> Eq for StartCommercialRequest<'a>
impl<'a> StructuralPartialEq for StartCommercialRequest<'a>
Auto Trait Implementations§
impl<'a> Freeze for StartCommercialRequest<'a>
impl<'a> RefUnwindSafe for StartCommercialRequest<'a>
impl<'a> Send for StartCommercialRequest<'a>
impl<'a> Sync for StartCommercialRequest<'a>
impl<'a> Unpin for StartCommercialRequest<'a>
impl<'a> UnwindSafe for StartCommercialRequest<'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