pub struct Builder<T>(/* private fields */);Expand description
A builder for VideoAllSegmentsMetadata
Implementations§
Source§impl Builder<RidStage>
impl Builder<RidStage>
Sourcepub fn rid(self, rid: VideoRid) -> Builder<NumFramesStage>
pub fn rid(self, rid: VideoRid) -> 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<MinAbsoluteTimestampStage>
pub fn num_segments( self, num_segments: i32, ) -> Builder<MinAbsoluteTimestampStage>
Sets the num_segments 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 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: impl Into<Option<f64>>) -> Self
pub fn scale_factor(self, scale_factor: impl Into<Option<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 min_timestamp(self, min_timestamp: impl Into<Option<Timestamp>>) -> Self
pub fn min_timestamp(self, min_timestamp: impl Into<Option<Timestamp>>) -> Self
Sets the min_timestamp field.
Sourcepub fn max_timestamp(self, max_timestamp: impl Into<Option<Timestamp>>) -> Self
pub fn max_timestamp(self, max_timestamp: impl Into<Option<Timestamp>>) -> Self
Sets the max_timestamp field.
Sourcepub fn duration_seconds(self, duration_seconds: impl Into<Option<f64>>) -> Self
pub fn duration_seconds(self, duration_seconds: impl Into<Option<f64>>) -> Self
Sets the duration_seconds field.
Sourcepub fn frame_rate(self, frame_rate: impl Into<Option<f64>>) -> Self
pub fn frame_rate(self, frame_rate: impl Into<Option<f64>>) -> Self
Sets the frame_rate field.
Sourcepub fn build(self) -> VideoAllSegmentsMetadata
pub fn build(self) -> VideoAllSegmentsMetadata
Consumes the builder, returning a VideoAllSegmentsMetadata.
Trait Implementations§
Source§impl From<VideoAllSegmentsMetadata> for Builder<Complete>
impl From<VideoAllSegmentsMetadata> for Builder<Complete>
Source§fn from(v: VideoAllSegmentsMetadata) -> Self
fn from(v: VideoAllSegmentsMetadata) -> 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> UnsafeUnpin for Builder<T>where
T: UnsafeUnpin,
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