#[non_exhaustive]pub struct InsertableImageBuilder { /* private fields */ }
Expand description
A builder for InsertableImage
.
Implementations§
source§impl InsertableImageBuilder
impl InsertableImageBuilder
sourcepub fn duration(self, input: i32) -> Self
pub fn duration(self, input: i32) -> Self
Specify the time, in milliseconds, for the image to remain on the output video. This duration includes fade-in time but not fade-out time.
sourcepub fn set_duration(self, input: Option<i32>) -> Self
pub fn set_duration(self, input: Option<i32>) -> Self
Specify the time, in milliseconds, for the image to remain on the output video. This duration includes fade-in time but not fade-out time.
sourcepub fn get_duration(&self) -> &Option<i32>
pub fn get_duration(&self) -> &Option<i32>
Specify the time, in milliseconds, for the image to remain on the output video. This duration includes fade-in time but not fade-out time.
sourcepub fn fade_in(self, input: i32) -> Self
pub fn fade_in(self, input: i32) -> Self
Specify the length of time, in milliseconds, between the Start time that you specify for the image insertion and the time that the image appears at full opacity. Full opacity is the level that you specify for the opacity setting. If you don’t specify a value for Fade-in, the image will appear abruptly at the overlay start time.
sourcepub fn set_fade_in(self, input: Option<i32>) -> Self
pub fn set_fade_in(self, input: Option<i32>) -> Self
Specify the length of time, in milliseconds, between the Start time that you specify for the image insertion and the time that the image appears at full opacity. Full opacity is the level that you specify for the opacity setting. If you don’t specify a value for Fade-in, the image will appear abruptly at the overlay start time.
sourcepub fn get_fade_in(&self) -> &Option<i32>
pub fn get_fade_in(&self) -> &Option<i32>
Specify the length of time, in milliseconds, between the Start time that you specify for the image insertion and the time that the image appears at full opacity. Full opacity is the level that you specify for the opacity setting. If you don’t specify a value for Fade-in, the image will appear abruptly at the overlay start time.
sourcepub fn fade_out(self, input: i32) -> Self
pub fn fade_out(self, input: i32) -> Self
Specify the length of time, in milliseconds, between the end of the time that you have specified for the image overlay Duration and when the overlaid image has faded to total transparency. If you don’t specify a value for Fade-out, the image will disappear abruptly at the end of the inserted image duration.
sourcepub fn set_fade_out(self, input: Option<i32>) -> Self
pub fn set_fade_out(self, input: Option<i32>) -> Self
Specify the length of time, in milliseconds, between the end of the time that you have specified for the image overlay Duration and when the overlaid image has faded to total transparency. If you don’t specify a value for Fade-out, the image will disappear abruptly at the end of the inserted image duration.
sourcepub fn get_fade_out(&self) -> &Option<i32>
pub fn get_fade_out(&self) -> &Option<i32>
Specify the length of time, in milliseconds, between the end of the time that you have specified for the image overlay Duration and when the overlaid image has faded to total transparency. If you don’t specify a value for Fade-out, the image will disappear abruptly at the end of the inserted image duration.
sourcepub fn height(self, input: i32) -> Self
pub fn height(self, input: i32) -> Self
Specify the height of the inserted image in pixels. If you specify a value that’s larger than the video resolution height, the service will crop your overlaid image to fit. To use the native height of the image, keep this setting blank.
sourcepub fn set_height(self, input: Option<i32>) -> Self
pub fn set_height(self, input: Option<i32>) -> Self
Specify the height of the inserted image in pixels. If you specify a value that’s larger than the video resolution height, the service will crop your overlaid image to fit. To use the native height of the image, keep this setting blank.
sourcepub fn get_height(&self) -> &Option<i32>
pub fn get_height(&self) -> &Option<i32>
Specify the height of the inserted image in pixels. If you specify a value that’s larger than the video resolution height, the service will crop your overlaid image to fit. To use the native height of the image, keep this setting blank.
sourcepub fn image_inserter_input(self, input: impl Into<String>) -> Self
pub fn image_inserter_input(self, input: impl Into<String>) -> Self
Specify the HTTP, HTTPS, or Amazon S3 location of the image that you want to overlay on the video. Use a PNG or TGA file.
sourcepub fn set_image_inserter_input(self, input: Option<String>) -> Self
pub fn set_image_inserter_input(self, input: Option<String>) -> Self
Specify the HTTP, HTTPS, or Amazon S3 location of the image that you want to overlay on the video. Use a PNG or TGA file.
sourcepub fn get_image_inserter_input(&self) -> &Option<String>
pub fn get_image_inserter_input(&self) -> &Option<String>
Specify the HTTP, HTTPS, or Amazon S3 location of the image that you want to overlay on the video. Use a PNG or TGA file.
sourcepub fn image_x(self, input: i32) -> Self
pub fn image_x(self, input: i32) -> Self
Specify the distance, in pixels, between the inserted image and the left edge of the video frame. Required for any image overlay that you specify.
sourcepub fn set_image_x(self, input: Option<i32>) -> Self
pub fn set_image_x(self, input: Option<i32>) -> Self
Specify the distance, in pixels, between the inserted image and the left edge of the video frame. Required for any image overlay that you specify.
sourcepub fn get_image_x(&self) -> &Option<i32>
pub fn get_image_x(&self) -> &Option<i32>
Specify the distance, in pixels, between the inserted image and the left edge of the video frame. Required for any image overlay that you specify.
sourcepub fn image_y(self, input: i32) -> Self
pub fn image_y(self, input: i32) -> Self
Specify the distance, in pixels, between the overlaid image and the top edge of the video frame. Required for any image overlay that you specify.
sourcepub fn set_image_y(self, input: Option<i32>) -> Self
pub fn set_image_y(self, input: Option<i32>) -> Self
Specify the distance, in pixels, between the overlaid image and the top edge of the video frame. Required for any image overlay that you specify.
sourcepub fn get_image_y(&self) -> &Option<i32>
pub fn get_image_y(&self) -> &Option<i32>
Specify the distance, in pixels, between the overlaid image and the top edge of the video frame. Required for any image overlay that you specify.
sourcepub fn layer(self, input: i32) -> Self
pub fn layer(self, input: i32) -> Self
Specify how overlapping inserted images appear. Images with higher values for Layer appear on top of images with lower values for Layer.
sourcepub fn set_layer(self, input: Option<i32>) -> Self
pub fn set_layer(self, input: Option<i32>) -> Self
Specify how overlapping inserted images appear. Images with higher values for Layer appear on top of images with lower values for Layer.
sourcepub fn get_layer(&self) -> &Option<i32>
pub fn get_layer(&self) -> &Option<i32>
Specify how overlapping inserted images appear. Images with higher values for Layer appear on top of images with lower values for Layer.
sourcepub fn opacity(self, input: i32) -> Self
pub fn opacity(self, input: i32) -> Self
Use Opacity to specify how much of the underlying video shows through the inserted image. 0 is transparent and 100 is fully opaque. Default is 50.
sourcepub fn set_opacity(self, input: Option<i32>) -> Self
pub fn set_opacity(self, input: Option<i32>) -> Self
Use Opacity to specify how much of the underlying video shows through the inserted image. 0 is transparent and 100 is fully opaque. Default is 50.
sourcepub fn get_opacity(&self) -> &Option<i32>
pub fn get_opacity(&self) -> &Option<i32>
Use Opacity to specify how much of the underlying video shows through the inserted image. 0 is transparent and 100 is fully opaque. Default is 50.
sourcepub fn start_time(self, input: impl Into<String>) -> Self
pub fn start_time(self, input: impl Into<String>) -> Self
Specify the timecode of the frame that you want the overlay to first appear on. This must be in timecode (HH:MM:SS:FF or HH:MM:SS;FF) format. Remember to take into account your timecode source settings.
sourcepub fn set_start_time(self, input: Option<String>) -> Self
pub fn set_start_time(self, input: Option<String>) -> Self
Specify the timecode of the frame that you want the overlay to first appear on. This must be in timecode (HH:MM:SS:FF or HH:MM:SS;FF) format. Remember to take into account your timecode source settings.
sourcepub fn get_start_time(&self) -> &Option<String>
pub fn get_start_time(&self) -> &Option<String>
Specify the timecode of the frame that you want the overlay to first appear on. This must be in timecode (HH:MM:SS:FF or HH:MM:SS;FF) format. Remember to take into account your timecode source settings.
sourcepub fn width(self, input: i32) -> Self
pub fn width(self, input: i32) -> Self
Specify the width of the inserted image in pixels. If you specify a value that’s larger than the video resolution width, the service will crop your overlaid image to fit. To use the native width of the image, keep this setting blank.
sourcepub fn set_width(self, input: Option<i32>) -> Self
pub fn set_width(self, input: Option<i32>) -> Self
Specify the width of the inserted image in pixels. If you specify a value that’s larger than the video resolution width, the service will crop your overlaid image to fit. To use the native width of the image, keep this setting blank.
sourcepub fn get_width(&self) -> &Option<i32>
pub fn get_width(&self) -> &Option<i32>
Specify the width of the inserted image in pixels. If you specify a value that’s larger than the video resolution width, the service will crop your overlaid image to fit. To use the native width of the image, keep this setting blank.
sourcepub fn build(self) -> InsertableImage
pub fn build(self) -> InsertableImage
Consumes the builder and constructs a InsertableImage
.
Trait Implementations§
source§impl Clone for InsertableImageBuilder
impl Clone for InsertableImageBuilder
source§fn clone(&self) -> InsertableImageBuilder
fn clone(&self) -> InsertableImageBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for InsertableImageBuilder
impl Debug for InsertableImageBuilder
source§impl Default for InsertableImageBuilder
impl Default for InsertableImageBuilder
source§fn default() -> InsertableImageBuilder
fn default() -> InsertableImageBuilder
source§impl PartialEq for InsertableImageBuilder
impl PartialEq for InsertableImageBuilder
source§fn eq(&self, other: &InsertableImageBuilder) -> bool
fn eq(&self, other: &InsertableImageBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for InsertableImageBuilder
Auto Trait Implementations§
impl Freeze for InsertableImageBuilder
impl RefUnwindSafe for InsertableImageBuilder
impl Send for InsertableImageBuilder
impl Sync for InsertableImageBuilder
impl Unpin for InsertableImageBuilder
impl UnwindSafe for InsertableImageBuilder
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> 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