Struct aws_sdk_mediaconnect::types::AddMediaStreamRequest
source · #[non_exhaustive]pub struct AddMediaStreamRequest {
pub attributes: Option<MediaStreamAttributesRequest>,
pub clock_rate: Option<i32>,
pub description: Option<String>,
pub media_stream_id: Option<i32>,
pub media_stream_name: Option<String>,
pub media_stream_type: Option<MediaStreamType>,
pub video_format: Option<String>,
}
Expand description
The media stream that you want to add to the flow.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.attributes: Option<MediaStreamAttributesRequest>
The attributes that you want to assign to the new media stream.
clock_rate: Option<i32>
The sample rate (in Hz) for the stream. If the media stream type is video or ancillary data, set this value to 90000. If the media stream type is audio, set this value to either 48000 or 96000.
description: Option<String>
A description that can help you quickly identify what your media stream is used for.
media_stream_id: Option<i32>
A unique identifier for the media stream.
media_stream_name: Option<String>
A name that helps you distinguish one media stream from another.
media_stream_type: Option<MediaStreamType>
The type of media stream.
video_format: Option<String>
The resolution of the video.
Implementations§
source§impl AddMediaStreamRequest
impl AddMediaStreamRequest
sourcepub fn attributes(&self) -> Option<&MediaStreamAttributesRequest>
pub fn attributes(&self) -> Option<&MediaStreamAttributesRequest>
The attributes that you want to assign to the new media stream.
sourcepub fn clock_rate(&self) -> Option<i32>
pub fn clock_rate(&self) -> Option<i32>
The sample rate (in Hz) for the stream. If the media stream type is video or ancillary data, set this value to 90000. If the media stream type is audio, set this value to either 48000 or 96000.
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
A description that can help you quickly identify what your media stream is used for.
sourcepub fn media_stream_id(&self) -> Option<i32>
pub fn media_stream_id(&self) -> Option<i32>
A unique identifier for the media stream.
sourcepub fn media_stream_name(&self) -> Option<&str>
pub fn media_stream_name(&self) -> Option<&str>
A name that helps you distinguish one media stream from another.
sourcepub fn media_stream_type(&self) -> Option<&MediaStreamType>
pub fn media_stream_type(&self) -> Option<&MediaStreamType>
The type of media stream.
sourcepub fn video_format(&self) -> Option<&str>
pub fn video_format(&self) -> Option<&str>
The resolution of the video.
source§impl AddMediaStreamRequest
impl AddMediaStreamRequest
sourcepub fn builder() -> AddMediaStreamRequestBuilder
pub fn builder() -> AddMediaStreamRequestBuilder
Creates a new builder-style object to manufacture AddMediaStreamRequest
.
Trait Implementations§
source§impl Clone for AddMediaStreamRequest
impl Clone for AddMediaStreamRequest
source§fn clone(&self) -> AddMediaStreamRequest
fn clone(&self) -> AddMediaStreamRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AddMediaStreamRequest
impl Debug for AddMediaStreamRequest
source§impl PartialEq for AddMediaStreamRequest
impl PartialEq for AddMediaStreamRequest
source§fn eq(&self, other: &AddMediaStreamRequest) -> bool
fn eq(&self, other: &AddMediaStreamRequest) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for AddMediaStreamRequest
Auto Trait Implementations§
impl Freeze for AddMediaStreamRequest
impl RefUnwindSafe for AddMediaStreamRequest
impl Send for AddMediaStreamRequest
impl Sync for AddMediaStreamRequest
impl Unpin for AddMediaStreamRequest
impl UnwindSafe for AddMediaStreamRequest
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
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> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more