pub struct Builder<T>(/* private fields */);Expand description
A builder for VideoFileSegmentsMetadata
Implementations§
Source§impl Builder<RidStage>
impl Builder<RidStage>
Sourcepub fn rid(self, rid: VideoFileRid) -> Builder<NumFramesStage>
pub fn rid(self, rid: VideoFileRid) -> Builder<NumFramesStage>
Sets the rid field.
Source§impl Builder<NumFramesStage>
impl Builder<NumFramesStage>
Sourcepub fn num_frames(self, num_frames: i32) -> Builder<NumSegmentsStage>
pub fn num_frames(self, num_frames: i32) -> Builder<NumSegmentsStage>
Sets the num_frames field.
Source§impl Builder<NumSegmentsStage>
impl Builder<NumSegmentsStage>
Sourcepub fn num_segments(self, num_segments: i32) -> Builder<ScaleFactorStage>
pub fn num_segments(self, num_segments: i32) -> Builder<ScaleFactorStage>
Sets the num_segments field.
Source§impl Builder<ScaleFactorStage>
impl Builder<ScaleFactorStage>
Sourcepub fn scale_factor(
self,
scale_factor: f64,
) -> Builder<MinAbsoluteTimestampStage>
pub fn scale_factor( self, scale_factor: f64, ) -> Builder<MinAbsoluteTimestampStage>
Sets the scale_factor field.
Source§impl Builder<MinAbsoluteTimestampStage>
impl Builder<MinAbsoluteTimestampStage>
Sourcepub fn min_absolute_timestamp(
self,
min_absolute_timestamp: Timestamp,
) -> Builder<MaxAbsoluteTimestampStage>
pub fn min_absolute_timestamp( self, min_absolute_timestamp: Timestamp, ) -> Builder<MaxAbsoluteTimestampStage>
Sets the min_absolute_timestamp field.
Source§impl Builder<MaxAbsoluteTimestampStage>
impl Builder<MaxAbsoluteTimestampStage>
Sourcepub fn max_absolute_timestamp(
self,
max_absolute_timestamp: Timestamp,
) -> Builder<MediaDurationSecondsStage>
pub fn max_absolute_timestamp( self, max_absolute_timestamp: Timestamp, ) -> Builder<MediaDurationSecondsStage>
Sets the max_absolute_timestamp field.
Source§impl Builder<MediaDurationSecondsStage>
impl Builder<MediaDurationSecondsStage>
Sourcepub fn media_duration_seconds(
self,
media_duration_seconds: f64,
) -> Builder<MediaFrameRateStage>
pub fn media_duration_seconds( self, media_duration_seconds: f64, ) -> Builder<MediaFrameRateStage>
Sets the media_duration_seconds field.
Source§impl Builder<MediaFrameRateStage>
impl Builder<MediaFrameRateStage>
Sourcepub fn media_frame_rate(self, media_frame_rate: f64) -> Builder<Complete>
pub fn media_frame_rate(self, media_frame_rate: f64) -> Builder<Complete>
Sets the media_frame_rate field.
Source§impl Builder<Complete>
impl Builder<Complete>
Sourcepub fn rid(self, rid: VideoFileRid) -> Self
pub fn rid(self, rid: VideoFileRid) -> Self
Sets the rid field.
Sourcepub fn num_frames(self, num_frames: i32) -> Self
pub fn num_frames(self, num_frames: i32) -> Self
Sets the num_frames field.
Sourcepub fn num_segments(self, num_segments: i32) -> Self
pub fn num_segments(self, num_segments: i32) -> Self
Sets the num_segments field.
Sourcepub fn scale_factor(self, scale_factor: f64) -> Self
pub fn scale_factor(self, scale_factor: f64) -> Self
Sets the scale_factor field.
Sourcepub fn min_absolute_timestamp(self, min_absolute_timestamp: Timestamp) -> Self
pub fn min_absolute_timestamp(self, min_absolute_timestamp: Timestamp) -> Self
Sets the min_absolute_timestamp field.
Sourcepub fn max_absolute_timestamp(self, max_absolute_timestamp: Timestamp) -> Self
pub fn max_absolute_timestamp(self, max_absolute_timestamp: Timestamp) -> Self
Sets the max_absolute_timestamp field.
Sourcepub fn media_duration_seconds(self, media_duration_seconds: f64) -> Self
pub fn media_duration_seconds(self, media_duration_seconds: f64) -> Self
Sets the media_duration_seconds field.
Sourcepub fn media_frame_rate(self, media_frame_rate: f64) -> Self
pub fn media_frame_rate(self, media_frame_rate: f64) -> Self
Sets the media_frame_rate field.
Sourcepub fn build(self) -> VideoFileSegmentsMetadata
pub fn build(self) -> VideoFileSegmentsMetadata
Consumes the builder, returning a VideoFileSegmentsMetadata.
Trait Implementations§
Source§impl From<VideoFileSegmentsMetadata> for Builder<Complete>
impl From<VideoFileSegmentsMetadata> for Builder<Complete>
Source§fn from(v: VideoFileSegmentsMetadata) -> Self
fn from(v: VideoFileSegmentsMetadata) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<T> Freeze for Builder<T>where
T: Freeze,
impl<T> RefUnwindSafe for Builder<T>where
T: RefUnwindSafe,
impl<T> Send for Builder<T>where
T: Send,
impl<T> Sync for Builder<T>where
T: Sync,
impl<T> Unpin for Builder<T>where
T: Unpin,
impl<T> UnwindSafe for Builder<T>where
T: UnwindSafe,
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request