#[non_exhaustive]pub struct ElementaryStream {
pub key: String,
pub elementary_stream: Option<ElementaryStream>,
/* private fields */
}Expand description
Encoding of an input file such as an audio, video, or text track. Elementary streams must be packaged before mapping and sharing between different output formats.
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.key: StringA unique key for this elementary stream.
elementary_stream: Option<ElementaryStream>Encoding of an audio, video, or text track.
Implementations§
Source§impl ElementaryStream
impl ElementaryStream
pub fn new() -> Self
Sourcepub fn set_elementary_stream<T: Into<Option<ElementaryStream>>>(
self,
v: T,
) -> Self
pub fn set_elementary_stream<T: Into<Option<ElementaryStream>>>( self, v: T, ) -> Self
Sets the value of elementary_stream.
Note that all the setters affecting elementary_stream are mutually
exclusive.
§Example
use google_cloud_video_transcoder_v1::model::VideoStream;
let x = ElementaryStream::new().set_elementary_stream(Some(
google_cloud_video_transcoder_v1::model::elementary_stream::ElementaryStream::VideoStream(VideoStream::default().into())));Sourcepub fn video_stream(&self) -> Option<&Box<VideoStream>>
pub fn video_stream(&self) -> Option<&Box<VideoStream>>
The value of elementary_stream
if it holds a VideoStream, None if the field is not set or
holds a different branch.
Sourcepub fn set_video_stream<T: Into<Box<VideoStream>>>(self, v: T) -> Self
pub fn set_video_stream<T: Into<Box<VideoStream>>>(self, v: T) -> Self
Sets the value of elementary_stream
to hold a VideoStream.
Note that all the setters affecting elementary_stream are
mutually exclusive.
§Example
use google_cloud_video_transcoder_v1::model::VideoStream;
let x = ElementaryStream::new().set_video_stream(VideoStream::default()/* use setters */);
assert!(x.video_stream().is_some());
assert!(x.audio_stream().is_none());
assert!(x.text_stream().is_none());Sourcepub fn audio_stream(&self) -> Option<&Box<AudioStream>>
pub fn audio_stream(&self) -> Option<&Box<AudioStream>>
The value of elementary_stream
if it holds a AudioStream, None if the field is not set or
holds a different branch.
Sourcepub fn set_audio_stream<T: Into<Box<AudioStream>>>(self, v: T) -> Self
pub fn set_audio_stream<T: Into<Box<AudioStream>>>(self, v: T) -> Self
Sets the value of elementary_stream
to hold a AudioStream.
Note that all the setters affecting elementary_stream are
mutually exclusive.
§Example
use google_cloud_video_transcoder_v1::model::AudioStream;
let x = ElementaryStream::new().set_audio_stream(AudioStream::default()/* use setters */);
assert!(x.audio_stream().is_some());
assert!(x.video_stream().is_none());
assert!(x.text_stream().is_none());Sourcepub fn text_stream(&self) -> Option<&Box<TextStream>>
pub fn text_stream(&self) -> Option<&Box<TextStream>>
The value of elementary_stream
if it holds a TextStream, None if the field is not set or
holds a different branch.
Sourcepub fn set_text_stream<T: Into<Box<TextStream>>>(self, v: T) -> Self
pub fn set_text_stream<T: Into<Box<TextStream>>>(self, v: T) -> Self
Sets the value of elementary_stream
to hold a TextStream.
Note that all the setters affecting elementary_stream are
mutually exclusive.
§Example
use google_cloud_video_transcoder_v1::model::TextStream;
let x = ElementaryStream::new().set_text_stream(TextStream::default()/* use setters */);
assert!(x.text_stream().is_some());
assert!(x.video_stream().is_none());
assert!(x.audio_stream().is_none());Trait Implementations§
Source§impl Clone for ElementaryStream
impl Clone for ElementaryStream
Source§fn clone(&self) -> ElementaryStream
fn clone(&self) -> ElementaryStream
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more