Struct aws_sdk_elastictranscoder::types::Preset
source · #[non_exhaustive]pub struct Preset {
pub id: Option<String>,
pub arn: Option<String>,
pub name: Option<String>,
pub description: Option<String>,
pub container: Option<String>,
pub audio: Option<AudioParameters>,
pub video: Option<VideoParameters>,
pub thumbnails: Option<Thumbnails>,
pub type: Option<String>,
}
Expand description
Presets are templates that contain most of the settings for transcoding media files from one format to another. Elastic Transcoder includes some default presets for common formats, for example, several iPod and iPhone versions. You can also create your own presets for formats that aren't included among the default presets. You specify which preset you want to use when you create a job.
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.id: Option<String>
Identifier for the new preset. You use this value to get settings for the preset or to delete it.
arn: Option<String>
The Amazon Resource Name (ARN) for the preset.
name: Option<String>
The name of the preset.
description: Option<String>
A description of the preset.
container: Option<String>
The container type for the output file. Valid values include flac
, flv
, fmp4
, gif
, mp3
, mp4
, mpg
, mxf
, oga
, ogg
, ts
, and webm
.
audio: Option<AudioParameters>
A section of the response body that provides information about the audio preset values.
video: Option<VideoParameters>
A section of the response body that provides information about the video preset values.
thumbnails: Option<Thumbnails>
A section of the response body that provides information about the thumbnail preset values, if any.
type: Option<String>
Whether the preset is a default preset provided by Elastic Transcoder (System
) or a preset that you have defined (Custom
).
Implementations§
source§impl Preset
impl Preset
sourcepub fn id(&self) -> Option<&str>
pub fn id(&self) -> Option<&str>
Identifier for the new preset. You use this value to get settings for the preset or to delete it.
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
A description of the preset.
sourcepub fn container(&self) -> Option<&str>
pub fn container(&self) -> Option<&str>
The container type for the output file. Valid values include flac
, flv
, fmp4
, gif
, mp3
, mp4
, mpg
, mxf
, oga
, ogg
, ts
, and webm
.
sourcepub fn audio(&self) -> Option<&AudioParameters>
pub fn audio(&self) -> Option<&AudioParameters>
A section of the response body that provides information about the audio preset values.
sourcepub fn video(&self) -> Option<&VideoParameters>
pub fn video(&self) -> Option<&VideoParameters>
A section of the response body that provides information about the video preset values.
sourcepub fn thumbnails(&self) -> Option<&Thumbnails>
pub fn thumbnails(&self) -> Option<&Thumbnails>
A section of the response body that provides information about the thumbnail preset values, if any.