#[non_exhaustive]pub struct DetectedPropertiesBuilder { /* private fields */ }
Expand description
A builder for DetectedProperties
.
Implementations§
source§impl DetectedPropertiesBuilder
impl DetectedPropertiesBuilder
sourcepub fn set_width(self, input: Option<i32>) -> Self
pub fn set_width(self, input: Option<i32>) -> Self
The detected width of the input file, in pixels.
sourcepub fn set_height(self, input: Option<i32>) -> Self
pub fn set_height(self, input: Option<i32>) -> Self
The detected height of the input file, in pixels.
sourcepub fn get_height(&self) -> &Option<i32>
pub fn get_height(&self) -> &Option<i32>
The detected height of the input file, in pixels.
sourcepub fn frame_rate(self, input: impl Into<String>) -> Self
pub fn frame_rate(self, input: impl Into<String>) -> Self
The detected frame rate of the input file, in frames per second.
sourcepub fn set_frame_rate(self, input: Option<String>) -> Self
pub fn set_frame_rate(self, input: Option<String>) -> Self
The detected frame rate of the input file, in frames per second.
sourcepub fn get_frame_rate(&self) -> &Option<String>
pub fn get_frame_rate(&self) -> &Option<String>
The detected frame rate of the input file, in frames per second.
sourcepub fn set_file_size(self, input: Option<i64>) -> Self
pub fn set_file_size(self, input: Option<i64>) -> Self
The detected file size of the input file, in bytes.
sourcepub fn get_file_size(&self) -> &Option<i64>
pub fn get_file_size(&self) -> &Option<i64>
The detected file size of the input file, in bytes.
sourcepub fn duration_millis(self, input: i64) -> Self
pub fn duration_millis(self, input: i64) -> Self
The detected duration of the input file, in milliseconds.
sourcepub fn set_duration_millis(self, input: Option<i64>) -> Self
pub fn set_duration_millis(self, input: Option<i64>) -> Self
The detected duration of the input file, in milliseconds.
sourcepub fn get_duration_millis(&self) -> &Option<i64>
pub fn get_duration_millis(&self) -> &Option<i64>
The detected duration of the input file, in milliseconds.
sourcepub fn build(self) -> DetectedProperties
pub fn build(self) -> DetectedProperties
Consumes the builder and constructs a DetectedProperties
.
Trait Implementations§
source§impl Clone for DetectedPropertiesBuilder
impl Clone for DetectedPropertiesBuilder
source§fn clone(&self) -> DetectedPropertiesBuilder
fn clone(&self) -> DetectedPropertiesBuilder
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 DetectedPropertiesBuilder
impl Debug for DetectedPropertiesBuilder
source§impl Default for DetectedPropertiesBuilder
impl Default for DetectedPropertiesBuilder
source§fn default() -> DetectedPropertiesBuilder
fn default() -> DetectedPropertiesBuilder
Returns the “default value” for a type. Read more
impl StructuralPartialEq for DetectedPropertiesBuilder
Auto Trait Implementations§
impl Freeze for DetectedPropertiesBuilder
impl RefUnwindSafe for DetectedPropertiesBuilder
impl Send for DetectedPropertiesBuilder
impl Sync for DetectedPropertiesBuilder
impl Unpin for DetectedPropertiesBuilder
impl UnwindSafe for DetectedPropertiesBuilder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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.