pub struct Builder { /* private fields */ }
Expand description
A builder for Artwork
.
Implementations
sourceimpl Builder
impl Builder
sourcepub fn input_key(self, input: impl Into<String>) -> Self
pub fn input_key(self, input: impl Into<String>) -> Self
The name of the file to be used as album art. To determine which Amazon S3 bucket contains the specified file, Elastic Transcoder checks the pipeline specified by PipelineId
; the InputBucket
object in that pipeline identifies the bucket.
If the file name includes a prefix, for example, cooking/pie.jpg
, include the prefix in the key. If the file isn't in the specified bucket, Elastic Transcoder returns an error.
sourcepub fn set_input_key(self, input: Option<String>) -> Self
pub fn set_input_key(self, input: Option<String>) -> Self
The name of the file to be used as album art. To determine which Amazon S3 bucket contains the specified file, Elastic Transcoder checks the pipeline specified by PipelineId
; the InputBucket
object in that pipeline identifies the bucket.
If the file name includes a prefix, for example, cooking/pie.jpg
, include the prefix in the key. If the file isn't in the specified bucket, Elastic Transcoder returns an error.
sourcepub fn max_width(self, input: impl Into<String>) -> Self
pub fn max_width(self, input: impl Into<String>) -> Self
The maximum width of the output album art in pixels. If you specify auto
, Elastic Transcoder uses 600 as the default value. If you specify a numeric value, enter an even integer between 32 and 4096, inclusive.
sourcepub fn set_max_width(self, input: Option<String>) -> Self
pub fn set_max_width(self, input: Option<String>) -> Self
The maximum width of the output album art in pixels. If you specify auto
, Elastic Transcoder uses 600 as the default value. If you specify a numeric value, enter an even integer between 32 and 4096, inclusive.
sourcepub fn max_height(self, input: impl Into<String>) -> Self
pub fn max_height(self, input: impl Into<String>) -> Self
The maximum height of the output album art in pixels. If you specify auto
, Elastic Transcoder uses 600 as the default value. If you specify a numeric value, enter an even integer between 32 and 3072, inclusive.
sourcepub fn set_max_height(self, input: Option<String>) -> Self
pub fn set_max_height(self, input: Option<String>) -> Self
The maximum height of the output album art in pixels. If you specify auto
, Elastic Transcoder uses 600 as the default value. If you specify a numeric value, enter an even integer between 32 and 3072, inclusive.
sourcepub fn sizing_policy(self, input: impl Into<String>) -> Self
pub fn sizing_policy(self, input: impl Into<String>) -> Self
Specify one of the following values to control scaling of the output album art:
-
Fit:
Elastic Transcoder scales the output art so it matches the value that you specified in eitherMaxWidth
orMaxHeight
without exceeding the other value. -
Fill:
Elastic Transcoder scales the output art so it matches the value that you specified in eitherMaxWidth
orMaxHeight
and matches or exceeds the other value. Elastic Transcoder centers the output art and then crops it in the dimension (if any) that exceeds the maximum value. -
Stretch:
Elastic Transcoder stretches the output art to match the values that you specified forMaxWidth
andMaxHeight
. If the relative proportions of the input art and the output art are different, the output art will be distorted. -
Keep:
Elastic Transcoder does not scale the output art. If either dimension of the input art exceeds the values that you specified forMaxWidth
andMaxHeight
, Elastic Transcoder crops the output art. -
ShrinkToFit:
Elastic Transcoder scales the output art down so that its dimensions match the values that you specified for at least one ofMaxWidth
andMaxHeight
without exceeding either value. If you specify this option, Elastic Transcoder does not scale the art up. -
ShrinkToFill
Elastic Transcoder scales the output art down so that its dimensions match the values that you specified for at least one ofMaxWidth
andMaxHeight
without dropping below either value. If you specify this option, Elastic Transcoder does not scale the art up.
sourcepub fn set_sizing_policy(self, input: Option<String>) -> Self
pub fn set_sizing_policy(self, input: Option<String>) -> Self
Specify one of the following values to control scaling of the output album art:
-
Fit:
Elastic Transcoder scales the output art so it matches the value that you specified in eitherMaxWidth
orMaxHeight
without exceeding the other value. -
Fill:
Elastic Transcoder scales the output art so it matches the value that you specified in eitherMaxWidth
orMaxHeight
and matches or exceeds the other value. Elastic Transcoder centers the output art and then crops it in the dimension (if any) that exceeds the maximum value. -
Stretch:
Elastic Transcoder stretches the output art to match the values that you specified forMaxWidth
andMaxHeight
. If the relative proportions of the input art and the output art are different, the output art will be distorted. -
Keep:
Elastic Transcoder does not scale the output art. If either dimension of the input art exceeds the values that you specified forMaxWidth
andMaxHeight
, Elastic Transcoder crops the output art. -
ShrinkToFit:
Elastic Transcoder scales the output art down so that its dimensions match the values that you specified for at least one ofMaxWidth
andMaxHeight
without exceeding either value. If you specify this option, Elastic Transcoder does not scale the art up. -
ShrinkToFill
Elastic Transcoder scales the output art down so that its dimensions match the values that you specified for at least one ofMaxWidth
andMaxHeight
without dropping below either value. If you specify this option, Elastic Transcoder does not scale the art up.
sourcepub fn padding_policy(self, input: impl Into<String>) -> Self
pub fn padding_policy(self, input: impl Into<String>) -> Self
When you set PaddingPolicy
to Pad
, Elastic Transcoder may add white bars to the top and bottom and/or left and right sides of the output album art to make the total size of the output art match the values that you specified for MaxWidth
and MaxHeight
.
sourcepub fn set_padding_policy(self, input: Option<String>) -> Self
pub fn set_padding_policy(self, input: Option<String>) -> Self
When you set PaddingPolicy
to Pad
, Elastic Transcoder may add white bars to the top and bottom and/or left and right sides of the output album art to make the total size of the output art match the values that you specified for MaxWidth
and MaxHeight
.
sourcepub fn album_art_format(self, input: impl Into<String>) -> Self
pub fn album_art_format(self, input: impl Into<String>) -> Self
The format of album art, if any. Valid formats are .jpg
and .png
.
sourcepub fn set_album_art_format(self, input: Option<String>) -> Self
pub fn set_album_art_format(self, input: Option<String>) -> Self
The format of album art, if any. Valid formats are .jpg
and .png
.
sourcepub fn encryption(self, input: Encryption) -> Self
pub fn encryption(self, input: Encryption) -> Self
The encryption settings, if any, that you want Elastic Transcoder to apply to your artwork.
sourcepub fn set_encryption(self, input: Option<Encryption>) -> Self
pub fn set_encryption(self, input: Option<Encryption>) -> Self
The encryption settings, if any, that you want Elastic Transcoder to apply to your artwork.
Trait Implementations
impl StructuralPartialEq for Builder
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
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> 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