#[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
source§impl PartialEq for DetectedPropertiesBuilder
impl PartialEq for DetectedPropertiesBuilder
source§fn eq(&self, other: &DetectedPropertiesBuilder) -> bool
fn eq(&self, other: &DetectedPropertiesBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for DetectedPropertiesBuilder
Auto Trait Implementations§
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> 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>
Creates a shared type from an unshared type.