#[non_exhaustive]
pub struct InsertableImageBuilder { /* private fields */ }
Expand description

A builder for InsertableImage.

Implementations§

source§

impl InsertableImageBuilder

source

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.

source

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.

source

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.

source

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.

source

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.

source

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.

source

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.

source

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.

source

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.

source

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.

source

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.

source

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.

source

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.

source

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.

source

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.

source

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.

source

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.

source

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.

source

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.

source

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.

source

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.

source

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.

source

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.

source

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.

source

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.

source

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.

source

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.

source

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.

source

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.

source

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.

source

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.

source

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.

source

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.

source

pub fn build(self) -> InsertableImage

Consumes the builder and constructs a InsertableImage.

Trait Implementations§

source§

impl Clone for InsertableImageBuilder

source§

fn clone(&self) -> InsertableImageBuilder

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for InsertableImageBuilder

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for InsertableImageBuilder

source§

fn default() -> InsertableImageBuilder

Returns the “default value” for a type. Read more
source§

impl PartialEq for InsertableImageBuilder

source§

fn eq(&self, other: &InsertableImageBuilder) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl StructuralPartialEq for InsertableImageBuilder

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts 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 more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts 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
source§

impl<Unshared, Shared> IntoShared<Shared> for Unshared
where Shared: FromUnshared<Unshared>,

source§

fn into_shared(self) -> Shared

Creates a shared type from an unshared type.
source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

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
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more