Struct twitch_api::helix::schedule::delete_channel_stream_schedule_segment::DeleteChannelStreamScheduleSegmentRequest
source · [−]#[non_exhaustive]pub struct DeleteChannelStreamScheduleSegmentRequest<'a> {
pub broadcaster_id: Cow<'a, UserIdRef>,
pub id: Cow<'a, StreamSegmentIdRef>,
}
Available on crate feature
helix
only.Expand description
Query Parameters for Delete 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: Cow<'a, UserIdRef>
User ID of the broadcaster who owns the channel streaming schedule. Provided broadcaster_id must match the user_id in the user OAuth token.
id: Cow<'a, StreamSegmentIdRef>
The ID of the streaming segment to delete.
Implementations
sourceimpl<'a> DeleteChannelStreamScheduleSegmentRequest<'a>
impl<'a> DeleteChannelStreamScheduleSegmentRequest<'a>
sourcepub fn builder(
) -> DeleteChannelStreamScheduleSegmentRequestBuilder<'a, ((), ())>
pub fn builder(
) -> DeleteChannelStreamScheduleSegmentRequestBuilder<'a, ((), ())>
Create a builder for building DeleteChannelStreamScheduleSegmentRequest
.
On the builder, call .broadcaster_id(...)
, .id(...)
to set the values of the fields.
Finally, call .build()
to create the instance of DeleteChannelStreamScheduleSegmentRequest
.
sourceimpl<'a> DeleteChannelStreamScheduleSegmentRequest<'a>
impl<'a> DeleteChannelStreamScheduleSegmentRequest<'a>
sourcepub fn new(
broadcaster_id: impl IntoCow<'a, UserIdRef> + 'a,
id: impl IntoCow<'a, StreamSegmentIdRef> + 'a
) -> Self
pub fn new(
broadcaster_id: impl IntoCow<'a, UserIdRef> + 'a,
id: impl IntoCow<'a, StreamSegmentIdRef> + 'a
) -> Self
Delete a single scheduled broadcast or a recurring scheduled broadcast for a channel’s stream schedule.
Trait Implementations
sourceimpl<'a> Clone for DeleteChannelStreamScheduleSegmentRequest<'a>
impl<'a> Clone for DeleteChannelStreamScheduleSegmentRequest<'a>
sourcefn clone(&self) -> DeleteChannelStreamScheduleSegmentRequest<'a>
fn clone(&self) -> DeleteChannelStreamScheduleSegmentRequest<'a>
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 moresourceimpl<'a> Debug for DeleteChannelStreamScheduleSegmentRequest<'a>
impl<'a> Debug for DeleteChannelStreamScheduleSegmentRequest<'a>
sourceimpl<'de: 'a, 'a> Deserialize<'de> for DeleteChannelStreamScheduleSegmentRequest<'a>
impl<'de: 'a, 'a> Deserialize<'de> for DeleteChannelStreamScheduleSegmentRequest<'a>
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<'a> PartialEq<DeleteChannelStreamScheduleSegmentRequest<'a>> for DeleteChannelStreamScheduleSegmentRequest<'a>
impl<'a> PartialEq<DeleteChannelStreamScheduleSegmentRequest<'a>> for DeleteChannelStreamScheduleSegmentRequest<'a>
sourcefn eq(&self, other: &DeleteChannelStreamScheduleSegmentRequest<'a>) -> bool
fn eq(&self, other: &DeleteChannelStreamScheduleSegmentRequest<'a>) -> bool
sourceimpl Request for DeleteChannelStreamScheduleSegmentRequest<'_>
impl Request for DeleteChannelStreamScheduleSegmentRequest<'_>
type Response = DeleteChannelStreamScheduleSegment
type Response = DeleteChannelStreamScheduleSegment
Response type. twitch’s response will deserialize to this.
sourceconst 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 Informationsourceconst SCOPE: &'static [Scope] = _
const SCOPE: &'static [Scope] = _
Available on crate feature
twitch_oauth2
only.Scopes needed by this endpoint
sourceconst OPT_SCOPE: &'static [Scope] = _
const OPT_SCOPE: &'static [Scope] = _
Available on crate feature
twitch_oauth2
only.Optional scopes needed by this endpoint
sourcefn query(&self) -> Result<String, SerializeError>
fn query(&self) -> Result<String, SerializeError>
Defines layout of the url parameters.
sourcefn get_uri(&self) -> Result<Uri, InvalidUri>
fn get_uri(&self) -> Result<Uri, InvalidUri>
Returns full URI for the request, including query parameters.
sourcefn get_bare_uri() -> Result<Uri, InvalidUri>
fn get_bare_uri() -> Result<Uri, InvalidUri>
Returns bare URI for the request, NOT including query parameters.
sourceimpl RequestDelete for DeleteChannelStreamScheduleSegmentRequest<'_>
impl RequestDelete for DeleteChannelStreamScheduleSegmentRequest<'_>
sourcefn parse_inner_response(
request: Option<Self>,
uri: &Uri,
response: &str,
status: StatusCode
) -> Result<Response<Self, <Self as Request>::Response>, HelixRequestDeleteError>where
Self: Sized,
fn parse_inner_response(
request: Option<Self>,
uri: &Uri,
response: &str,
status: StatusCode
) -> Result<Response<Self, <Self as Request>::Response>, HelixRequestDeleteError>where
Self: Sized,
Parse a response string into the response.
sourcefn 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 clientsourceimpl<'a> Serialize for DeleteChannelStreamScheduleSegmentRequest<'a>
impl<'a> Serialize for DeleteChannelStreamScheduleSegmentRequest<'a>
impl<'a> StructuralPartialEq for DeleteChannelStreamScheduleSegmentRequest<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for DeleteChannelStreamScheduleSegmentRequest<'a>
impl<'a> Send for DeleteChannelStreamScheduleSegmentRequest<'a>
impl<'a> Sync for DeleteChannelStreamScheduleSegmentRequest<'a>
impl<'a> Unpin for DeleteChannelStreamScheduleSegmentRequest<'a>
impl<'a> UnwindSafe for DeleteChannelStreamScheduleSegmentRequest<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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