#[non_exhaustive]pub struct CreateChannelStreamScheduleSegmentRequest {
pub broadcaster_id: UserId,
}
Available on crate feature
helix
only.Expand description
Query Parameters for Create Channel Stream Schedule Segment
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.broadcaster_id: UserId
User ID of the broadcaster who owns the channel streaming schedule. Provided broadcaster_id must match the user_id in the user OAuth token.
Implementations§
Source§impl CreateChannelStreamScheduleSegmentRequest
impl CreateChannelStreamScheduleSegmentRequest
Sourcepub fn builder() -> CreateChannelStreamScheduleSegmentRequestBuilder<((),)>
pub fn builder() -> CreateChannelStreamScheduleSegmentRequestBuilder<((),)>
Create a builder for building CreateChannelStreamScheduleSegmentRequest
.
On the builder, call .broadcaster_id(...)
to set the values of the fields.
Finally, call .build()
to create the instance of CreateChannelStreamScheduleSegmentRequest
.
Trait Implementations§
Source§impl Clone for CreateChannelStreamScheduleSegmentRequest
impl Clone for CreateChannelStreamScheduleSegmentRequest
Source§fn clone(&self) -> CreateChannelStreamScheduleSegmentRequest
fn clone(&self) -> CreateChannelStreamScheduleSegmentRequest
Returns a duplicate 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<'de> Deserialize<'de> for CreateChannelStreamScheduleSegmentRequest
impl<'de> Deserialize<'de> for CreateChannelStreamScheduleSegmentRequest
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 PartialEq for CreateChannelStreamScheduleSegmentRequest
impl PartialEq for CreateChannelStreamScheduleSegmentRequest
Source§fn eq(&self, other: &CreateChannelStreamScheduleSegmentRequest) -> bool
fn eq(&self, other: &CreateChannelStreamScheduleSegmentRequest) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.Source§impl Request for CreateChannelStreamScheduleSegmentRequest
impl Request for CreateChannelStreamScheduleSegmentRequest
Source§const PATH: &'static str = "schedule/segment"
const PATH: &'static str = "schedule/segment"
The path to the endpoint relative to the helix root. eg.
channels
for Get Channel InformationSource§const SCOPE: &'static [Scope]
const SCOPE: &'static [Scope]
Available on crate feature
twitch_oauth2
only.Scopes needed by this endpoint
Source§type Response = ScheduledBroadcasts
type Response = ScheduledBroadcasts
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 RequestPost for CreateChannelStreamScheduleSegmentRequest
impl RequestPost for CreateChannelStreamScheduleSegmentRequest
Source§type Body = CreateChannelStreamScheduleSegmentBody
type Body = CreateChannelStreamScheduleSegmentBody
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.
impl StructuralPartialEq for CreateChannelStreamScheduleSegmentRequest
Auto Trait Implementations§
impl Freeze for CreateChannelStreamScheduleSegmentRequest
impl RefUnwindSafe for CreateChannelStreamScheduleSegmentRequest
impl Send for CreateChannelStreamScheduleSegmentRequest
impl Sync for CreateChannelStreamScheduleSegmentRequest
impl Unpin for CreateChannelStreamScheduleSegmentRequest
impl UnwindSafe for CreateChannelStreamScheduleSegmentRequest
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