Struct aws_sdk_elastictranscoder::types::JobWatermark
source · #[non_exhaustive]pub struct JobWatermark {
pub preset_watermark_id: Option<String>,
pub input_key: Option<String>,
pub encryption: Option<Encryption>,
}
Expand description
Watermarks can be in .png or .jpg format. If you want to display a watermark that is not rectangular, use the .png format, which supports transparency.
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.preset_watermark_id: Option<String>
The ID of the watermark settings that Elastic Transcoder uses to add watermarks to the video during transcoding. The settings are in the preset specified by Preset for the current output. In that preset, the value of Watermarks Id tells Elastic Transcoder which settings to use.
input_key: Option<String>
The name of the .png or .jpg file that you want to use for the watermark. To determine which Amazon S3 bucket contains the specified file, Elastic Transcoder checks the pipeline specified by Pipeline
; the Input Bucket
object in that pipeline identifies the bucket.
If the file name includes a prefix, for example, logos/128x64.png, include the prefix in the key. If the file isn't in the specified bucket, Elastic Transcoder returns an error.
encryption: Option<Encryption>
The encryption settings, if any, that you want Elastic Transcoder to apply to your watermarks.
Implementations§
source§impl JobWatermark
impl JobWatermark
sourcepub fn preset_watermark_id(&self) -> Option<&str>
pub fn preset_watermark_id(&self) -> Option<&str>
The ID of the watermark settings that Elastic Transcoder uses to add watermarks to the video during transcoding. The settings are in the preset specified by Preset for the current output. In that preset, the value of Watermarks Id tells Elastic Transcoder which settings to use.
sourcepub fn input_key(&self) -> Option<&str>
pub fn input_key(&self) -> Option<&str>
The name of the .png or .jpg file that you want to use for the watermark. To determine which Amazon S3 bucket contains the specified file, Elastic Transcoder checks the pipeline specified by Pipeline
; the Input Bucket
object in that pipeline identifies the bucket.
If the file name includes a prefix, for example, logos/128x64.png, include the prefix in the key. If the file isn't in the specified bucket, Elastic Transcoder returns an error.
sourcepub fn encryption(&self) -> Option<&Encryption>
pub fn encryption(&self) -> Option<&Encryption>
The encryption settings, if any, that you want Elastic Transcoder to apply to your watermarks.
source§impl JobWatermark
impl JobWatermark
sourcepub fn builder() -> JobWatermarkBuilder
pub fn builder() -> JobWatermarkBuilder
Creates a new builder-style object to manufacture JobWatermark
.
Trait Implementations§
source§impl Clone for JobWatermark
impl Clone for JobWatermark
source§fn clone(&self) -> JobWatermark
fn clone(&self) -> JobWatermark
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for JobWatermark
impl Debug for JobWatermark
source§impl PartialEq for JobWatermark
impl PartialEq for JobWatermark
source§fn eq(&self, other: &JobWatermark) -> bool
fn eq(&self, other: &JobWatermark) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for JobWatermark
Auto Trait Implementations§
impl Freeze for JobWatermark
impl RefUnwindSafe for JobWatermark
impl Send for JobWatermark
impl Sync for JobWatermark
impl Unpin for JobWatermark
impl UnwindSafe for JobWatermark
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