#[non_exhaustive]pub struct JobInputBuilder { /* private fields */ }
Expand description
A builder for JobInput
.
Implementations§
Source§impl JobInputBuilder
impl JobInputBuilder
Sourcepub fn key(self, input: impl Into<String>) -> Self
pub fn key(self, input: impl Into<String>) -> Self
The name of the file to transcode. Elsewhere in the body of the JSON block is the the ID of the pipeline to use for processing the job. The InputBucket
object in that pipeline tells Elastic Transcoder which Amazon S3 bucket to get the file from.
If the file name includes a prefix, such as cooking/lasagna.mpg
, include the prefix in the key. If the file isn't in the specified bucket, Elastic Transcoder returns an error.
Sourcepub fn set_key(self, input: Option<String>) -> Self
pub fn set_key(self, input: Option<String>) -> Self
The name of the file to transcode. Elsewhere in the body of the JSON block is the the ID of the pipeline to use for processing the job. The InputBucket
object in that pipeline tells Elastic Transcoder which Amazon S3 bucket to get the file from.
If the file name includes a prefix, such as cooking/lasagna.mpg
, include the prefix in the key. If the file isn't in the specified bucket, Elastic Transcoder returns an error.
Sourcepub fn get_key(&self) -> &Option<String>
pub fn get_key(&self) -> &Option<String>
The name of the file to transcode. Elsewhere in the body of the JSON block is the the ID of the pipeline to use for processing the job. The InputBucket
object in that pipeline tells Elastic Transcoder which Amazon S3 bucket to get the file from.
If the file name includes a prefix, such as cooking/lasagna.mpg
, include the prefix in the key. If the file isn't in the specified bucket, Elastic Transcoder returns an error.
Sourcepub fn frame_rate(self, input: impl Into<String>) -> Self
pub fn frame_rate(self, input: impl Into<String>) -> Self
The frame rate of the input file. If you want Elastic Transcoder to automatically detect the frame rate of the input file, specify auto
. If you want to specify the frame rate for the input file, enter one of the following values:
10
, 15
, 23.97
, 24
, 25
, 29.97
, 30
, 60
If you specify a value other than auto
, Elastic Transcoder disables automatic detection of the frame rate.
Sourcepub fn set_frame_rate(self, input: Option<String>) -> Self
pub fn set_frame_rate(self, input: Option<String>) -> Self
The frame rate of the input file. If you want Elastic Transcoder to automatically detect the frame rate of the input file, specify auto
. If you want to specify the frame rate for the input file, enter one of the following values:
10
, 15
, 23.97
, 24
, 25
, 29.97
, 30
, 60
If you specify a value other than auto
, Elastic Transcoder disables automatic detection of the frame rate.
Sourcepub fn get_frame_rate(&self) -> &Option<String>
pub fn get_frame_rate(&self) -> &Option<String>
The frame rate of the input file. If you want Elastic Transcoder to automatically detect the frame rate of the input file, specify auto
. If you want to specify the frame rate for the input file, enter one of the following values:
10
, 15
, 23.97
, 24
, 25
, 29.97
, 30
, 60
If you specify a value other than auto
, Elastic Transcoder disables automatic detection of the frame rate.
Sourcepub fn resolution(self, input: impl Into<String>) -> Self
pub fn resolution(self, input: impl Into<String>) -> Self
This value must be auto
, which causes Elastic Transcoder to automatically detect the resolution of the input file.
Sourcepub fn set_resolution(self, input: Option<String>) -> Self
pub fn set_resolution(self, input: Option<String>) -> Self
This value must be auto
, which causes Elastic Transcoder to automatically detect the resolution of the input file.
Sourcepub fn get_resolution(&self) -> &Option<String>
pub fn get_resolution(&self) -> &Option<String>
This value must be auto
, which causes Elastic Transcoder to automatically detect the resolution of the input file.
Sourcepub fn aspect_ratio(self, input: impl Into<String>) -> Self
pub fn aspect_ratio(self, input: impl Into<String>) -> Self
The aspect ratio of the input file. If you want Elastic Transcoder to automatically detect the aspect ratio of the input file, specify auto
. If you want to specify the aspect ratio for the output file, enter one of the following values:
1:1
, 4:3
, 3:2
, 16:9
If you specify a value other than auto
, Elastic Transcoder disables automatic detection of the aspect ratio.
Sourcepub fn set_aspect_ratio(self, input: Option<String>) -> Self
pub fn set_aspect_ratio(self, input: Option<String>) -> Self
The aspect ratio of the input file. If you want Elastic Transcoder to automatically detect the aspect ratio of the input file, specify auto
. If you want to specify the aspect ratio for the output file, enter one of the following values:
1:1
, 4:3
, 3:2
, 16:9
If you specify a value other than auto
, Elastic Transcoder disables automatic detection of the aspect ratio.
Sourcepub fn get_aspect_ratio(&self) -> &Option<String>
pub fn get_aspect_ratio(&self) -> &Option<String>
The aspect ratio of the input file. If you want Elastic Transcoder to automatically detect the aspect ratio of the input file, specify auto
. If you want to specify the aspect ratio for the output file, enter one of the following values:
1:1
, 4:3
, 3:2
, 16:9
If you specify a value other than auto
, Elastic Transcoder disables automatic detection of the aspect ratio.
Sourcepub fn interlaced(self, input: impl Into<String>) -> Self
pub fn interlaced(self, input: impl Into<String>) -> Self
Whether the input file is interlaced. If you want Elastic Transcoder to automatically detect whether the input file is interlaced, specify auto
. If you want to specify whether the input file is interlaced, enter one of the following values:
true
, false
If you specify a value other than auto
, Elastic Transcoder disables automatic detection of interlacing.
Sourcepub fn set_interlaced(self, input: Option<String>) -> Self
pub fn set_interlaced(self, input: Option<String>) -> Self
Whether the input file is interlaced. If you want Elastic Transcoder to automatically detect whether the input file is interlaced, specify auto
. If you want to specify whether the input file is interlaced, enter one of the following values:
true
, false
If you specify a value other than auto
, Elastic Transcoder disables automatic detection of interlacing.
Sourcepub fn get_interlaced(&self) -> &Option<String>
pub fn get_interlaced(&self) -> &Option<String>
Whether the input file is interlaced. If you want Elastic Transcoder to automatically detect whether the input file is interlaced, specify auto
. If you want to specify whether the input file is interlaced, enter one of the following values:
true
, false
If you specify a value other than auto
, Elastic Transcoder disables automatic detection of interlacing.
Sourcepub fn container(self, input: impl Into<String>) -> Self
pub fn container(self, input: impl Into<String>) -> Self
The container type for the input file. If you want Elastic Transcoder to automatically detect the container type of the input file, specify auto
. If you want to specify the container type for the input file, enter one of the following values:
3gp
, aac
, asf
, avi
, divx
, flv
, m4a
, mkv
, mov
, mp3
, mp4
, mpeg
, mpeg-ps
, mpeg-ts
, mxf
, ogg
, vob
, wav
, webm
Sourcepub fn set_container(self, input: Option<String>) -> Self
pub fn set_container(self, input: Option<String>) -> Self
The container type for the input file. If you want Elastic Transcoder to automatically detect the container type of the input file, specify auto
. If you want to specify the container type for the input file, enter one of the following values:
3gp
, aac
, asf
, avi
, divx
, flv
, m4a
, mkv
, mov
, mp3
, mp4
, mpeg
, mpeg-ps
, mpeg-ts
, mxf
, ogg
, vob
, wav
, webm
Sourcepub fn get_container(&self) -> &Option<String>
pub fn get_container(&self) -> &Option<String>
The container type for the input file. If you want Elastic Transcoder to automatically detect the container type of the input file, specify auto
. If you want to specify the container type for the input file, enter one of the following values:
3gp
, aac
, asf
, avi
, divx
, flv
, m4a
, mkv
, mov
, mp3
, mp4
, mpeg
, mpeg-ps
, mpeg-ts
, mxf
, ogg
, vob
, wav
, webm
Sourcepub fn encryption(self, input: Encryption) -> Self
pub fn encryption(self, input: Encryption) -> Self
The encryption settings, if any, that are used for decrypting your input files. If your input file is encrypted, you must specify the mode that Elastic Transcoder uses to decrypt your file.
Sourcepub fn set_encryption(self, input: Option<Encryption>) -> Self
pub fn set_encryption(self, input: Option<Encryption>) -> Self
The encryption settings, if any, that are used for decrypting your input files. If your input file is encrypted, you must specify the mode that Elastic Transcoder uses to decrypt your file.
Sourcepub fn get_encryption(&self) -> &Option<Encryption>
pub fn get_encryption(&self) -> &Option<Encryption>
The encryption settings, if any, that are used for decrypting your input files. If your input file is encrypted, you must specify the mode that Elastic Transcoder uses to decrypt your file.
Sourcepub fn time_span(self, input: TimeSpan) -> Self
pub fn time_span(self, input: TimeSpan) -> Self
Settings for clipping an input. Each input can have different clip settings.
Sourcepub fn set_time_span(self, input: Option<TimeSpan>) -> Self
pub fn set_time_span(self, input: Option<TimeSpan>) -> Self
Settings for clipping an input. Each input can have different clip settings.
Sourcepub fn get_time_span(&self) -> &Option<TimeSpan>
pub fn get_time_span(&self) -> &Option<TimeSpan>
Settings for clipping an input. Each input can have different clip settings.
Sourcepub fn input_captions(self, input: InputCaptions) -> Self
pub fn input_captions(self, input: InputCaptions) -> Self
You can configure Elastic Transcoder to transcode captions, or subtitles, from one format to another. All captions must be in UTF-8. Elastic Transcoder supports two types of captions:
-
Embedded: Embedded captions are included in the same file as the audio and video. Elastic Transcoder supports only one embedded caption per language, to a maximum of 300 embedded captions per file.
Valid input values include:
CEA-608 (EIA-608
, first non-empty channel only),CEA-708 (EIA-708
, first non-empty channel only), andmov-text
Valid outputs include:
mov-text
Elastic Transcoder supports a maximum of one embedded format per output.
-
Sidecar: Sidecar captions are kept in a separate metadata file from the audio and video data. Sidecar captions require a player that is capable of understanding the relationship between the video file and the sidecar file. Elastic Transcoder supports only one sidecar caption per language, to a maximum of 20 sidecar captions per file.
Valid input values include:
dfxp
(first div element only),ebu-tt
,scc
,smpt
,srt
,ttml
(first div element only), andwebvtt
Valid outputs include:
dfxp
(first div element only),scc
,srt
, andwebvtt
.
If you want ttml or smpte-tt compatible captions, specify dfxp as your output format.
Elastic Transcoder does not support OCR (Optical Character Recognition), does not accept pictures as a valid input for captions, and is not available for audio-only transcoding. Elastic Transcoder does not preserve text formatting (for example, italics) during the transcoding process.
To remove captions or leave the captions empty, set Captions
to null. To pass through existing captions unchanged, set the MergePolicy
to MergeRetain
, and pass in a null CaptionSources
array.
For more information on embedded files, see the Subtitles Wikipedia page.
For more information on sidecar files, see the Extensible Metadata Platform and Sidecar file Wikipedia pages.
Sourcepub fn set_input_captions(self, input: Option<InputCaptions>) -> Self
pub fn set_input_captions(self, input: Option<InputCaptions>) -> Self
You can configure Elastic Transcoder to transcode captions, or subtitles, from one format to another. All captions must be in UTF-8. Elastic Transcoder supports two types of captions:
-
Embedded: Embedded captions are included in the same file as the audio and video. Elastic Transcoder supports only one embedded caption per language, to a maximum of 300 embedded captions per file.
Valid input values include:
CEA-608 (EIA-608
, first non-empty channel only),CEA-708 (EIA-708
, first non-empty channel only), andmov-text
Valid outputs include:
mov-text
Elastic Transcoder supports a maximum of one embedded format per output.
-
Sidecar: Sidecar captions are kept in a separate metadata file from the audio and video data. Sidecar captions require a player that is capable of understanding the relationship between the video file and the sidecar file. Elastic Transcoder supports only one sidecar caption per language, to a maximum of 20 sidecar captions per file.
Valid input values include:
dfxp
(first div element only),ebu-tt
,scc
,smpt
,srt
,ttml
(first div element only), andwebvtt
Valid outputs include:
dfxp
(first div element only),scc
,srt
, andwebvtt
.
If you want ttml or smpte-tt compatible captions, specify dfxp as your output format.
Elastic Transcoder does not support OCR (Optical Character Recognition), does not accept pictures as a valid input for captions, and is not available for audio-only transcoding. Elastic Transcoder does not preserve text formatting (for example, italics) during the transcoding process.
To remove captions or leave the captions empty, set Captions
to null. To pass through existing captions unchanged, set the MergePolicy
to MergeRetain
, and pass in a null CaptionSources
array.
For more information on embedded files, see the Subtitles Wikipedia page.
For more information on sidecar files, see the Extensible Metadata Platform and Sidecar file Wikipedia pages.
Sourcepub fn get_input_captions(&self) -> &Option<InputCaptions>
pub fn get_input_captions(&self) -> &Option<InputCaptions>
You can configure Elastic Transcoder to transcode captions, or subtitles, from one format to another. All captions must be in UTF-8. Elastic Transcoder supports two types of captions:
-
Embedded: Embedded captions are included in the same file as the audio and video. Elastic Transcoder supports only one embedded caption per language, to a maximum of 300 embedded captions per file.
Valid input values include:
CEA-608 (EIA-608
, first non-empty channel only),CEA-708 (EIA-708
, first non-empty channel only), andmov-text
Valid outputs include:
mov-text
Elastic Transcoder supports a maximum of one embedded format per output.
-
Sidecar: Sidecar captions are kept in a separate metadata file from the audio and video data. Sidecar captions require a player that is capable of understanding the relationship between the video file and the sidecar file. Elastic Transcoder supports only one sidecar caption per language, to a maximum of 20 sidecar captions per file.
Valid input values include:
dfxp
(first div element only),ebu-tt
,scc
,smpt
,srt
,ttml
(first div element only), andwebvtt
Valid outputs include:
dfxp
(first div element only),scc
,srt
, andwebvtt
.
If you want ttml or smpte-tt compatible captions, specify dfxp as your output format.
Elastic Transcoder does not support OCR (Optical Character Recognition), does not accept pictures as a valid input for captions, and is not available for audio-only transcoding. Elastic Transcoder does not preserve text formatting (for example, italics) during the transcoding process.
To remove captions or leave the captions empty, set Captions
to null. To pass through existing captions unchanged, set the MergePolicy
to MergeRetain
, and pass in a null CaptionSources
array.
For more information on embedded files, see the Subtitles Wikipedia page.
For more information on sidecar files, see the Extensible Metadata Platform and Sidecar file Wikipedia pages.
Sourcepub fn detected_properties(self, input: DetectedProperties) -> Self
pub fn detected_properties(self, input: DetectedProperties) -> Self
The detected properties of the input file.
Sourcepub fn set_detected_properties(self, input: Option<DetectedProperties>) -> Self
pub fn set_detected_properties(self, input: Option<DetectedProperties>) -> Self
The detected properties of the input file.
Sourcepub fn get_detected_properties(&self) -> &Option<DetectedProperties>
pub fn get_detected_properties(&self) -> &Option<DetectedProperties>
The detected properties of the input file.
Trait Implementations§
Source§impl Clone for JobInputBuilder
impl Clone for JobInputBuilder
Source§fn clone(&self) -> JobInputBuilder
fn clone(&self) -> JobInputBuilder
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for JobInputBuilder
impl Debug for JobInputBuilder
Source§impl Default for JobInputBuilder
impl Default for JobInputBuilder
Source§fn default() -> JobInputBuilder
fn default() -> JobInputBuilder
Source§impl PartialEq for JobInputBuilder
impl PartialEq for JobInputBuilder
impl StructuralPartialEq for JobInputBuilder
Auto Trait Implementations§
impl Freeze for JobInputBuilder
impl RefUnwindSafe for JobInputBuilder
impl Send for JobInputBuilder
impl Sync for JobInputBuilder
impl Unpin for JobInputBuilder
impl UnwindSafe for JobInputBuilder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 moreSource§impl<T> Paint for Twhere
T: ?Sized,
impl<T> Paint for Twhere
T: ?Sized,
Source§fn fg(&self, value: Color) -> Painted<&T>
fn fg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self
with the foreground set to
value
.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like red()
and
green()
, which have the same functionality but are
pithier.
§Example
Set foreground color to white using fg()
:
use yansi::{Paint, Color};
painted.fg(Color::White);
Set foreground color to white using white()
.
use yansi::Paint;
painted.white();
Source§fn bright_black(&self) -> Painted<&T>
fn bright_black(&self) -> Painted<&T>
Source§fn bright_red(&self) -> Painted<&T>
fn bright_red(&self) -> Painted<&T>
Source§fn bright_green(&self) -> Painted<&T>
fn bright_green(&self) -> Painted<&T>
Source§fn bright_yellow(&self) -> Painted<&T>
fn bright_yellow(&self) -> Painted<&T>
Source§fn bright_blue(&self) -> Painted<&T>
fn bright_blue(&self) -> Painted<&T>
Source§fn bright_magenta(&self) -> Painted<&T>
fn bright_magenta(&self) -> Painted<&T>
Source§fn bright_cyan(&self) -> Painted<&T>
fn bright_cyan(&self) -> Painted<&T>
Source§fn bright_white(&self) -> Painted<&T>
fn bright_white(&self) -> Painted<&T>
Source§fn bg(&self, value: Color) -> Painted<&T>
fn bg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self
with the background set to
value
.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like on_red()
and
on_green()
, which have the same functionality but
are pithier.
§Example
Set background color to red using fg()
:
use yansi::{Paint, Color};
painted.bg(Color::Red);
Set background color to red using on_red()
.
use yansi::Paint;
painted.on_red();
Source§fn on_primary(&self) -> Painted<&T>
fn on_primary(&self) -> Painted<&T>
Source§fn on_magenta(&self) -> Painted<&T>
fn on_magenta(&self) -> Painted<&T>
Source§fn on_bright_black(&self) -> Painted<&T>
fn on_bright_black(&self) -> Painted<&T>
Source§fn on_bright_red(&self) -> Painted<&T>
fn on_bright_red(&self) -> Painted<&T>
Source§fn on_bright_green(&self) -> Painted<&T>
fn on_bright_green(&self) -> Painted<&T>
Source§fn on_bright_yellow(&self) -> Painted<&T>
fn on_bright_yellow(&self) -> Painted<&T>
Source§fn on_bright_blue(&self) -> Painted<&T>
fn on_bright_blue(&self) -> Painted<&T>
Source§fn on_bright_magenta(&self) -> Painted<&T>
fn on_bright_magenta(&self) -> Painted<&T>
Source§fn on_bright_cyan(&self) -> Painted<&T>
fn on_bright_cyan(&self) -> Painted<&T>
Source§fn on_bright_white(&self) -> Painted<&T>
fn on_bright_white(&self) -> Painted<&T>
Source§fn attr(&self, value: Attribute) -> Painted<&T>
fn attr(&self, value: Attribute) -> Painted<&T>
Enables the styling Attribute
value
.
This method should be used rarely. Instead, prefer to use
attribute-specific builder methods like bold()
and
underline()
, which have the same functionality
but are pithier.
§Example
Make text bold using attr()
:
use yansi::{Paint, Attribute};
painted.attr(Attribute::Bold);
Make text bold using using bold()
.
use yansi::Paint;
painted.bold();
Source§fn rapid_blink(&self) -> Painted<&T>
fn rapid_blink(&self) -> Painted<&T>
Source§fn quirk(&self, value: Quirk) -> Painted<&T>
fn quirk(&self, value: Quirk) -> Painted<&T>
Enables the yansi
Quirk
value
.
This method should be used rarely. Instead, prefer to use quirk-specific
builder methods like mask()
and
wrap()
, which have the same functionality but are
pithier.
§Example
Enable wrapping using .quirk()
:
use yansi::{Paint, Quirk};
painted.quirk(Quirk::Wrap);
Enable wrapping using wrap()
.
use yansi::Paint;
painted.wrap();
Source§fn clear(&self) -> Painted<&T>
👎Deprecated since 1.0.1: renamed to resetting()
due to conflicts with Vec::clear()
.
The clear()
method will be removed in a future release.
fn clear(&self) -> Painted<&T>
resetting()
due to conflicts with Vec::clear()
.
The clear()
method will be removed in a future release.Source§fn whenever(&self, value: Condition) -> Painted<&T>
fn whenever(&self, value: Condition) -> Painted<&T>
Conditionally enable styling based on whether the Condition
value
applies. Replaces any previous condition.
See the crate level docs for more details.
§Example
Enable styling painted
only when both stdout
and stderr
are TTYs:
use yansi::{Paint, Condition};
painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);