#[non_exhaustive]pub struct CreateChannelStreamScheduleSegmentBody<'a> {
pub start_time: Cow<'a, TimestampRef>,
pub timezone: Cow<'a, str>,
pub is_recurring: bool,
pub duration: Option<Cow<'a, str>>,
pub category_id: Option<Cow<'a, CategoryIdRef>>,
pub title: Option<Cow<'a, str>>,
}
helix
only.Expand description
Body Parameters for Create Channel Stream Schedule Segment
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.start_time: Cow<'a, TimestampRef>
Start time for the scheduled broadcast specified in RFC3339 format.
timezone: Cow<'a, str>
The timezone of the application creating the scheduled broadcast using the IANA time zone database format.
is_recurring: bool
Indicates if the scheduled broadcast is recurring weekly.
duration: Option<Cow<'a, str>>
Duration of the scheduled broadcast in minutes from the start_time. Default: 240.
category_id: Option<Cow<'a, CategoryIdRef>>
Game/Category ID for the scheduled broadcast.
title: Option<Cow<'a, str>>
Title for the scheduled broadcast. Maximum: 140 characters.
Implementations
sourceimpl<'a> CreateChannelStreamScheduleSegmentBody<'a>
impl<'a> CreateChannelStreamScheduleSegmentBody<'a>
sourcepub fn builder(
) -> CreateChannelStreamScheduleSegmentBodyBuilder<'a, ((), (), (), (), (), ())>
pub fn builder(
) -> CreateChannelStreamScheduleSegmentBodyBuilder<'a, ((), (), (), (), (), ())>
Create a builder for building CreateChannelStreamScheduleSegmentBody
.
On the builder, call .start_time(...)
, .timezone(...)
, .is_recurring(...)
, .duration(...)
(optional), .category_id(...)
(optional), .title(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of CreateChannelStreamScheduleSegmentBody
.
sourceimpl<'a> CreateChannelStreamScheduleSegmentBody<'a>
impl<'a> CreateChannelStreamScheduleSegmentBody<'a>
sourcepub fn new(
start_time: impl IntoCow<'a, TimestampRef> + 'a,
timezone: impl Into<Cow<'a, str>>,
is_recurring: bool
) -> Self
pub fn new(
start_time: impl IntoCow<'a, TimestampRef> + 'a,
timezone: impl Into<Cow<'a, str>>,
is_recurring: bool
) -> Self
Create a single scheduled broadcast or a recurring scheduled broadcast for a channel’s stream schedule.
Trait Implementations
sourceimpl<'a> Clone for CreateChannelStreamScheduleSegmentBody<'a>
impl<'a> Clone for CreateChannelStreamScheduleSegmentBody<'a>
sourcefn clone(&self) -> CreateChannelStreamScheduleSegmentBody<'a>
fn clone(&self) -> CreateChannelStreamScheduleSegmentBody<'a>
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresourceimpl<'a> Debug for CreateChannelStreamScheduleSegmentBody<'a>
impl<'a> Debug for CreateChannelStreamScheduleSegmentBody<'a>
sourceimpl<'de: 'a, 'a> Deserialize<'de> for CreateChannelStreamScheduleSegmentBody<'a>
impl<'de: 'a, 'a> Deserialize<'de> for CreateChannelStreamScheduleSegmentBody<'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<CreateChannelStreamScheduleSegmentBody<'a>> for CreateChannelStreamScheduleSegmentBody<'a>
impl<'a> PartialEq<CreateChannelStreamScheduleSegmentBody<'a>> for CreateChannelStreamScheduleSegmentBody<'a>
sourcefn eq(&self, other: &CreateChannelStreamScheduleSegmentBody<'a>) -> bool
fn eq(&self, other: &CreateChannelStreamScheduleSegmentBody<'a>) -> bool
sourceimpl<'a> Serialize for CreateChannelStreamScheduleSegmentBody<'a>
impl<'a> Serialize for CreateChannelStreamScheduleSegmentBody<'a>
impl<'a> Eq for CreateChannelStreamScheduleSegmentBody<'a>
impl<'a> StructuralEq for CreateChannelStreamScheduleSegmentBody<'a>
impl<'a> StructuralPartialEq for CreateChannelStreamScheduleSegmentBody<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for CreateChannelStreamScheduleSegmentBody<'a>
impl<'a> Send for CreateChannelStreamScheduleSegmentBody<'a>
impl<'a> Sync for CreateChannelStreamScheduleSegmentBody<'a>
impl<'a> Unpin for CreateChannelStreamScheduleSegmentBody<'a>
impl<'a> UnwindSafe for CreateChannelStreamScheduleSegmentBody<'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.sourceimpl<T> HelixRequestBody for Twhere
T: Serialize + SealedSerialize,
impl<T> HelixRequestBody for Twhere
T: Serialize + SealedSerialize,
sourcefn try_to_body(&self) -> Result<Bytes, BodyError>
fn try_to_body(&self) -> Result<Bytes, BodyError>
helix
only.