#[non_exhaustive]pub struct AllowedRenditionSizeBuilder { /* private fields */ }
Expand description
A builder for AllowedRenditionSize
.
Implementations§
source§impl AllowedRenditionSizeBuilder
impl AllowedRenditionSizeBuilder
sourcepub fn height(self, input: i32) -> Self
pub fn height(self, input: i32) -> Self
Use Height to define the video resolution height, in pixels, for this rule.
sourcepub fn set_height(self, input: Option<i32>) -> Self
pub fn set_height(self, input: Option<i32>) -> Self
Use Height to define the video resolution height, in pixels, for this rule.
sourcepub fn get_height(&self) -> &Option<i32>
pub fn get_height(&self) -> &Option<i32>
Use Height to define the video resolution height, in pixels, for this rule.
sourcepub fn required(self, input: RequiredFlag) -> Self
pub fn required(self, input: RequiredFlag) -> Self
Set to ENABLED to force a rendition to be included.
sourcepub fn set_required(self, input: Option<RequiredFlag>) -> Self
pub fn set_required(self, input: Option<RequiredFlag>) -> Self
Set to ENABLED to force a rendition to be included.
sourcepub fn get_required(&self) -> &Option<RequiredFlag>
pub fn get_required(&self) -> &Option<RequiredFlag>
Set to ENABLED to force a rendition to be included.
sourcepub fn width(self, input: i32) -> Self
pub fn width(self, input: i32) -> Self
Use Width to define the video resolution width, in pixels, for this rule.
sourcepub fn set_width(self, input: Option<i32>) -> Self
pub fn set_width(self, input: Option<i32>) -> Self
Use Width to define the video resolution width, in pixels, for this rule.
sourcepub fn get_width(&self) -> &Option<i32>
pub fn get_width(&self) -> &Option<i32>
Use Width to define the video resolution width, in pixels, for this rule.
sourcepub fn build(self) -> AllowedRenditionSize
pub fn build(self) -> AllowedRenditionSize
Consumes the builder and constructs a AllowedRenditionSize
.
Trait Implementations§
source§impl Clone for AllowedRenditionSizeBuilder
impl Clone for AllowedRenditionSizeBuilder
source§fn clone(&self) -> AllowedRenditionSizeBuilder
fn clone(&self) -> AllowedRenditionSizeBuilder
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 Debug for AllowedRenditionSizeBuilder
impl Debug for AllowedRenditionSizeBuilder
source§impl Default for AllowedRenditionSizeBuilder
impl Default for AllowedRenditionSizeBuilder
source§fn default() -> AllowedRenditionSizeBuilder
fn default() -> AllowedRenditionSizeBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for AllowedRenditionSizeBuilder
impl PartialEq for AllowedRenditionSizeBuilder
source§fn eq(&self, other: &AllowedRenditionSizeBuilder) -> bool
fn eq(&self, other: &AllowedRenditionSizeBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for AllowedRenditionSizeBuilder
Auto Trait Implementations§
impl Freeze for AllowedRenditionSizeBuilder
impl RefUnwindSafe for AllowedRenditionSizeBuilder
impl Send for AllowedRenditionSizeBuilder
impl Sync for AllowedRenditionSizeBuilder
impl Unpin for AllowedRenditionSizeBuilder
impl UnwindSafe for AllowedRenditionSizeBuilder
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.