#[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 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 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 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 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<DetectedPropertiesBuilder> for DetectedPropertiesBuilder
impl PartialEq<DetectedPropertiesBuilder> 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 ==
.