#[non_exhaustive]
pub struct SegmentDetectionBuilder { /* private fields */ }
Expand description

A builder for SegmentDetection.

Implementations§

source§

impl SegmentDetectionBuilder

source

pub fn type(self, input: SegmentType) -> Self

The type of the segment. Valid values are TECHNICAL_CUE and SHOT.

source

pub fn set_type(self, input: Option<SegmentType>) -> Self

The type of the segment. Valid values are TECHNICAL_CUE and SHOT.

source

pub fn get_type(&self) -> &Option<SegmentType>

The type of the segment. Valid values are TECHNICAL_CUE and SHOT.

source

pub fn start_timestamp_millis(self, input: i64) -> Self

The start time of the detected segment in milliseconds from the start of the video. This value is rounded down. For example, if the actual timestamp is 100.6667 milliseconds, Amazon Rekognition Video returns a value of 100 millis.

source

pub fn set_start_timestamp_millis(self, input: Option<i64>) -> Self

The start time of the detected segment in milliseconds from the start of the video. This value is rounded down. For example, if the actual timestamp is 100.6667 milliseconds, Amazon Rekognition Video returns a value of 100 millis.

source

pub fn get_start_timestamp_millis(&self) -> &Option<i64>

The start time of the detected segment in milliseconds from the start of the video. This value is rounded down. For example, if the actual timestamp is 100.6667 milliseconds, Amazon Rekognition Video returns a value of 100 millis.

source

pub fn end_timestamp_millis(self, input: i64) -> Self

The end time of the detected segment, in milliseconds, from the start of the video. This value is rounded down.

source

pub fn set_end_timestamp_millis(self, input: Option<i64>) -> Self

The end time of the detected segment, in milliseconds, from the start of the video. This value is rounded down.

source

pub fn get_end_timestamp_millis(&self) -> &Option<i64>

The end time of the detected segment, in milliseconds, from the start of the video. This value is rounded down.

source

pub fn duration_millis(self, input: i64) -> Self

The duration of the detected segment in milliseconds.

source

pub fn set_duration_millis(self, input: Option<i64>) -> Self

The duration of the detected segment in milliseconds.

source

pub fn get_duration_millis(&self) -> &Option<i64>

The duration of the detected segment in milliseconds.

source

pub fn start_timecode_smpte(self, input: impl Into<String>) -> Self

The frame-accurate SMPTE timecode, from the start of a video, for the start of a detected segment. StartTimecode is in HH:MM:SS:fr format (and ;fr for drop frame-rates).

source

pub fn set_start_timecode_smpte(self, input: Option<String>) -> Self

The frame-accurate SMPTE timecode, from the start of a video, for the start of a detected segment. StartTimecode is in HH:MM:SS:fr format (and ;fr for drop frame-rates).

source

pub fn get_start_timecode_smpte(&self) -> &Option<String>

The frame-accurate SMPTE timecode, from the start of a video, for the start of a detected segment. StartTimecode is in HH:MM:SS:fr format (and ;fr for drop frame-rates).

source

pub fn end_timecode_smpte(self, input: impl Into<String>) -> Self

The frame-accurate SMPTE timecode, from the start of a video, for the end of a detected segment. EndTimecode is in HH:MM:SS:fr format (and ;fr for drop frame-rates).

source

pub fn set_end_timecode_smpte(self, input: Option<String>) -> Self

The frame-accurate SMPTE timecode, from the start of a video, for the end of a detected segment. EndTimecode is in HH:MM:SS:fr format (and ;fr for drop frame-rates).

source

pub fn get_end_timecode_smpte(&self) -> &Option<String>

The frame-accurate SMPTE timecode, from the start of a video, for the end of a detected segment. EndTimecode is in HH:MM:SS:fr format (and ;fr for drop frame-rates).

source

pub fn duration_smpte(self, input: impl Into<String>) -> Self

The duration of the timecode for the detected segment in SMPTE format.

source

pub fn set_duration_smpte(self, input: Option<String>) -> Self

The duration of the timecode for the detected segment in SMPTE format.

source

pub fn get_duration_smpte(&self) -> &Option<String>

The duration of the timecode for the detected segment in SMPTE format.

source

pub fn technical_cue_segment(self, input: TechnicalCueSegment) -> Self

If the segment is a technical cue, contains information about the technical cue.

source

pub fn set_technical_cue_segment( self, input: Option<TechnicalCueSegment> ) -> Self

If the segment is a technical cue, contains information about the technical cue.

source

pub fn get_technical_cue_segment(&self) -> &Option<TechnicalCueSegment>

If the segment is a technical cue, contains information about the technical cue.

source

pub fn shot_segment(self, input: ShotSegment) -> Self

If the segment is a shot detection, contains information about the shot detection.

source

pub fn set_shot_segment(self, input: Option<ShotSegment>) -> Self

If the segment is a shot detection, contains information about the shot detection.

source

pub fn get_shot_segment(&self) -> &Option<ShotSegment>

If the segment is a shot detection, contains information about the shot detection.

source

pub fn start_frame_number(self, input: i64) -> Self

The frame number of the start of a video segment, using a frame index that starts with 0.

source

pub fn set_start_frame_number(self, input: Option<i64>) -> Self

The frame number of the start of a video segment, using a frame index that starts with 0.

source

pub fn get_start_frame_number(&self) -> &Option<i64>

The frame number of the start of a video segment, using a frame index that starts with 0.

source

pub fn end_frame_number(self, input: i64) -> Self

The frame number at the end of a video segment, using a frame index that starts with 0.

source

pub fn set_end_frame_number(self, input: Option<i64>) -> Self

The frame number at the end of a video segment, using a frame index that starts with 0.

source

pub fn get_end_frame_number(&self) -> &Option<i64>

The frame number at the end of a video segment, using a frame index that starts with 0.

source

pub fn duration_frames(self, input: i64) -> Self

The duration of a video segment, expressed in frames.

source

pub fn set_duration_frames(self, input: Option<i64>) -> Self

The duration of a video segment, expressed in frames.

source

pub fn get_duration_frames(&self) -> &Option<i64>

The duration of a video segment, expressed in frames.

source

pub fn build(self) -> SegmentDetection

Consumes the builder and constructs a SegmentDetection.

Trait Implementations§

source§

impl Clone for SegmentDetectionBuilder

source§

fn clone(&self) -> SegmentDetectionBuilder

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for SegmentDetectionBuilder

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for SegmentDetectionBuilder

source§

fn default() -> SegmentDetectionBuilder

Returns the “default value” for a type. Read more
source§

impl PartialEq<SegmentDetectionBuilder> for SegmentDetectionBuilder

source§

fn eq(&self, other: &SegmentDetectionBuilder) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl StructuralPartialEq for SegmentDetectionBuilder

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more