Struct rusoto_kinesis_video_media::StartSelector
source · [−]pub struct StartSelector {
pub after_fragment_number: Option<String>,
pub continuation_token: Option<String>,
pub start_selector_type: String,
pub start_timestamp: Option<f64>,
}
Expand description
Identifies the chunk on the Kinesis video stream where you want the GetMedia
API to start returning media data. You have the following options to identify the starting chunk:
-
Choose the latest (or oldest) chunk.
-
Identify a specific chunk. You can identify a specific chunk either by providing a fragment number or timestamp (server or producer).
-
Each chunk's metadata includes a continuation token as a Matroska (MKV) tag (
AWSKINESISVIDEOCONTINUATION_TOKEN
). If your previousGetMedia
request terminated, you can use this tag value in your nextGetMedia
request. The API then starts returning chunks starting where the last API ended.
Fields
after_fragment_number: Option<String>
Specifies the fragment number from where you want the GetMedia
API to start returning the fragments.
continuation_token: Option<String>
Continuation token that Kinesis Video Streams returned in the previous GetMedia
response. The GetMedia
API then starts with the chunk identified by the continuation token.
start_selector_type: String
Identifies the fragment on the Kinesis video stream where you want to start getting the data from.
-
NOW - Start with the latest chunk on the stream.
-
EARLIEST - Start with earliest available chunk on the stream.
-
FRAGMENTNUMBER - Start with the chunk after a specific fragment. You must also specify the
AfterFragmentNumber
parameter. -
PRODUCERTIMESTAMP or SERVERTIMESTAMP - Start with the chunk containing a fragment with the specified producer or server timestamp. You specify the timestamp by adding
StartTimestamp
. -
CONTINUATIONTOKEN - Read using the specified continuation token.
If you choose the NOW, EARLIEST, or CONTINUATION_TOKEN as the startSelectorType
, you don't provide any additional information in the startSelector
.
start_timestamp: Option<f64>
A timestamp value. This value is required if you choose the PRODUCER_TIMESTAMP or the SERVER_TIMESTAMP as the startSelectorType
. The GetMedia
API then starts with the chunk containing the fragment that has the specified timestamp.
Trait Implementations
sourceimpl Clone for StartSelector
impl Clone for StartSelector
sourcefn clone(&self) -> StartSelector
fn clone(&self) -> StartSelector
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for StartSelector
impl Debug for StartSelector
sourceimpl Default for StartSelector
impl Default for StartSelector
sourcefn default() -> StartSelector
fn default() -> StartSelector
Returns the “default value” for a type. Read more
sourceimpl PartialEq<StartSelector> for StartSelector
impl PartialEq<StartSelector> for StartSelector
sourcefn eq(&self, other: &StartSelector) -> bool
fn eq(&self, other: &StartSelector) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &StartSelector) -> bool
fn ne(&self, other: &StartSelector) -> bool
This method tests for !=
.
sourceimpl Serialize for StartSelector
impl Serialize for StartSelector
impl StructuralPartialEq for StartSelector
Auto Trait Implementations
impl RefUnwindSafe for StartSelector
impl Send for StartSelector
impl Sync for StartSelector
impl Unpin for StartSelector
impl UnwindSafe for StartSelector
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
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
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more