#[non_exhaustive]pub struct JobAlbumArtBuilder { /* private fields */ }
Expand description
A builder for JobAlbumArt
.
Implementations§
source§impl JobAlbumArtBuilder
impl JobAlbumArtBuilder
sourcepub fn merge_policy(self, input: impl Into<String>) -> Self
pub fn merge_policy(self, input: impl Into<String>) -> Self
A policy that determines how Elastic Transcoder handles the existence of multiple album artwork files.
-
Replace:
The specified album art replaces any existing album art. -
Prepend:
The specified album art is placed in front of any existing album art. -
Append:
The specified album art is placed after any existing album art. -
Fallback:
If the original input file contains artwork, Elastic Transcoder uses that artwork for the output. If the original input does not contain artwork, Elastic Transcoder uses the specified album art file.
sourcepub fn set_merge_policy(self, input: Option<String>) -> Self
pub fn set_merge_policy(self, input: Option<String>) -> Self
A policy that determines how Elastic Transcoder handles the existence of multiple album artwork files.
-
Replace:
The specified album art replaces any existing album art. -
Prepend:
The specified album art is placed in front of any existing album art. -
Append:
The specified album art is placed after any existing album art. -
Fallback:
If the original input file contains artwork, Elastic Transcoder uses that artwork for the output. If the original input does not contain artwork, Elastic Transcoder uses the specified album art file.
sourcepub fn get_merge_policy(&self) -> &Option<String>
pub fn get_merge_policy(&self) -> &Option<String>
A policy that determines how Elastic Transcoder handles the existence of multiple album artwork files.
-
Replace:
The specified album art replaces any existing album art. -
Prepend:
The specified album art is placed in front of any existing album art. -
Append:
The specified album art is placed after any existing album art. -
Fallback:
If the original input file contains artwork, Elastic Transcoder uses that artwork for the output. If the original input does not contain artwork, Elastic Transcoder uses the specified album art file.
sourcepub fn artwork(self, input: Artwork) -> Self
pub fn artwork(self, input: Artwork) -> Self
Appends an item to artwork
.
To override the contents of this collection use set_artwork
.
The file to be used as album art. There can be multiple artworks associated with an audio file, to a maximum of 20. Valid formats are .jpg
and .png
sourcepub fn set_artwork(self, input: Option<Vec<Artwork>>) -> Self
pub fn set_artwork(self, input: Option<Vec<Artwork>>) -> Self
The file to be used as album art. There can be multiple artworks associated with an audio file, to a maximum of 20. Valid formats are .jpg
and .png
sourcepub fn get_artwork(&self) -> &Option<Vec<Artwork>>
pub fn get_artwork(&self) -> &Option<Vec<Artwork>>
The file to be used as album art. There can be multiple artworks associated with an audio file, to a maximum of 20. Valid formats are .jpg
and .png
sourcepub fn build(self) -> JobAlbumArt
pub fn build(self) -> JobAlbumArt
Consumes the builder and constructs a JobAlbumArt
.
Trait Implementations§
source§impl Clone for JobAlbumArtBuilder
impl Clone for JobAlbumArtBuilder
source§fn clone(&self) -> JobAlbumArtBuilder
fn clone(&self) -> JobAlbumArtBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for JobAlbumArtBuilder
impl Debug for JobAlbumArtBuilder
source§impl Default for JobAlbumArtBuilder
impl Default for JobAlbumArtBuilder
source§fn default() -> JobAlbumArtBuilder
fn default() -> JobAlbumArtBuilder
source§impl PartialEq for JobAlbumArtBuilder
impl PartialEq for JobAlbumArtBuilder
source§fn eq(&self, other: &JobAlbumArtBuilder) -> bool
fn eq(&self, other: &JobAlbumArtBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for JobAlbumArtBuilder
Auto Trait Implementations§
impl Freeze for JobAlbumArtBuilder
impl RefUnwindSafe for JobAlbumArtBuilder
impl Send for JobAlbumArtBuilder
impl Sync for JobAlbumArtBuilder
impl Unpin for JobAlbumArtBuilder
impl UnwindSafe for JobAlbumArtBuilder
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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