#[non_exhaustive]pub struct UpdateChannelStreamScheduleRequest<'a> {
pub broadcaster_id: Cow<'a, UserIdRef>,
pub is_vacation_enabled: Option<bool>,
pub vacation_start_time: Option<Cow<'a, TimestampRef>>,
pub vacation_end_time: Option<Cow<'a, TimestampRef>>,
pub timezone: Option<Cow<'a, str>>,
}
helix
only.Expand description
Query Parameters for Update Channel Stream Schedule
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
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.
is_vacation_enabled: Option<bool>
Indicates if Vacation Mode is enabled. Set to true to add a vacation or false to remove vacation from the channel streaming schedule.
vacation_start_time: Option<Cow<'a, TimestampRef>>
Start time for vacation specified in RFC3339 format. Required if is_vacation_enabled is set to true.
vacation_end_time: Option<Cow<'a, TimestampRef>>
End time for vacation specified in RFC3339 format. Required if is_vacation_enabled is set to true.
timezone: Option<Cow<'a, str>>
The timezone for when the vacation is being scheduled using the IANA time zone database format. Required if is_vacation_enabled is set to true.
Implementations
sourceimpl<'a> UpdateChannelStreamScheduleRequest<'a>
impl<'a> UpdateChannelStreamScheduleRequest<'a>
sourcepub fn builder(
) -> UpdateChannelStreamScheduleRequestBuilder<'a, ((), (), (), (), ())>
pub fn builder(
) -> UpdateChannelStreamScheduleRequestBuilder<'a, ((), (), (), (), ())>
Create a builder for building UpdateChannelStreamScheduleRequest
.
On the builder, call .broadcaster_id(...)
, .is_vacation_enabled(...)
(optional), .vacation_start_time(...)
(optional), .vacation_end_time(...)
(optional), .timezone(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of UpdateChannelStreamScheduleRequest
.
sourceimpl<'a> UpdateChannelStreamScheduleRequest<'a>
impl<'a> UpdateChannelStreamScheduleRequest<'a>
sourcepub fn broadcaster_id(broadcaster_id: impl IntoCow<'a, UserIdRef> + 'a) -> Self
pub fn broadcaster_id(broadcaster_id: impl IntoCow<'a, UserIdRef> + 'a) -> Self
Update the settings for a channel’s stream schedule.
Trait Implementations
sourceimpl<'a> Clone for UpdateChannelStreamScheduleRequest<'a>
impl<'a> Clone for UpdateChannelStreamScheduleRequest<'a>
sourcefn clone(&self) -> UpdateChannelStreamScheduleRequest<'a>
fn clone(&self) -> UpdateChannelStreamScheduleRequest<'a>
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresourceimpl<'a> Debug for UpdateChannelStreamScheduleRequest<'a>
impl<'a> Debug for UpdateChannelStreamScheduleRequest<'a>
sourceimpl<'de: 'a, 'a> Deserialize<'de> for UpdateChannelStreamScheduleRequest<'a>
impl<'de: 'a, 'a> Deserialize<'de> for UpdateChannelStreamScheduleRequest<'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>,
sourceimpl<'a> PartialEq<UpdateChannelStreamScheduleRequest<'a>> for UpdateChannelStreamScheduleRequest<'a>
impl<'a> PartialEq<UpdateChannelStreamScheduleRequest<'a>> for UpdateChannelStreamScheduleRequest<'a>
sourcefn eq(&self, other: &UpdateChannelStreamScheduleRequest<'a>) -> bool
fn eq(&self, other: &UpdateChannelStreamScheduleRequest<'a>) -> bool
sourceimpl Request for UpdateChannelStreamScheduleRequest<'_>
impl Request for UpdateChannelStreamScheduleRequest<'_>
type Response = UpdateChannelStreamSchedule
type Response = UpdateChannelStreamSchedule
sourceconst PATH: &'static str = "schedule/settings"
const PATH: &'static str = "schedule/settings"
channels
for Get Channel Informationsourceconst SCOPE: &'static [Scope] = _
const SCOPE: &'static [Scope] = _
twitch_oauth2
only.sourceconst OPT_SCOPE: &'static [Scope] = _
const OPT_SCOPE: &'static [Scope] = _
twitch_oauth2
only.sourcefn query(&self) -> Result<String, SerializeError>
fn query(&self) -> Result<String, SerializeError>
sourcefn get_uri(&self) -> Result<Uri, InvalidUri>
fn get_uri(&self) -> Result<Uri, InvalidUri>
sourcefn get_bare_uri() -> Result<Uri, InvalidUri>
fn get_bare_uri() -> Result<Uri, InvalidUri>
sourceimpl RequestPatch for UpdateChannelStreamScheduleRequest<'_>
impl RequestPatch for UpdateChannelStreamScheduleRequest<'_>
sourcefn parse_inner_response(
request: Option<Self>,
uri: &Uri,
response: &str,
status: StatusCode
) -> Result<Response<Self, Self::Response>, HelixRequestPatchError>where
Self: Sized,
fn parse_inner_response(
request: Option<Self>,
uri: &Uri,
response: &str,
status: StatusCode
) -> Result<Response<Self, Self::Response>, HelixRequestPatchError>where
Self: Sized,
sourcefn 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>
http::Request
from this Request
in your clientsourceimpl<'a> Serialize for UpdateChannelStreamScheduleRequest<'a>
impl<'a> Serialize for UpdateChannelStreamScheduleRequest<'a>
impl<'a> Eq for UpdateChannelStreamScheduleRequest<'a>
impl<'a> StructuralEq for UpdateChannelStreamScheduleRequest<'a>
impl<'a> StructuralPartialEq for UpdateChannelStreamScheduleRequest<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for UpdateChannelStreamScheduleRequest<'a>
impl<'a> Send for UpdateChannelStreamScheduleRequest<'a>
impl<'a> Sync for UpdateChannelStreamScheduleRequest<'a>
impl<'a> Unpin for UpdateChannelStreamScheduleRequest<'a>
impl<'a> UnwindSafe for UpdateChannelStreamScheduleRequest<'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
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.