Struct google_api_proto::google::cloud::video::livestream::v1::StaticOverlay
source · pub struct StaticOverlay {
pub asset: String,
pub resolution: Option<NormalizedResolution>,
pub position: Option<NormalizedCoordinate>,
pub opacity: f64,
}
Expand description
Configuration for the static overlay.
Fields§
§asset: String
Required. Asset to use for the overlaid image.
The asset must be represented in the form of:
projects/{project}/locations/{location}/assets/{assetId}
.
The asset’s resource type must be image.
resolution: Option<NormalizedResolution>
Optional. Normalized image resolution, based on output video resolution.
Valid values are [0.0, 1.0]. To respect the original image aspect ratio,
set either w
or h
to 0. To use the original image resolution, set both
w
and h
to 0. The default is {0, 0}.
position: Option<NormalizedCoordinate>
Optional. Position of the image in terms of normalized coordinates of the upper-left corner of the image, based on output video resolution. For example, use the x and y coordinates {0, 0} to position the top-left corner of the overlay animation in the top-left corner of the output video.
opacity: f64
Optional. Target image opacity. Valid values are from 1.0
(solid,
default) to 0.0
(transparent), exclusive. Set this to a value greater
than 0.0
.
Trait Implementations§
source§impl Clone for StaticOverlay
impl Clone for StaticOverlay
source§fn clone(&self) -> StaticOverlay
fn clone(&self) -> StaticOverlay
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for StaticOverlay
impl Debug for StaticOverlay
source§impl Default for StaticOverlay
impl Default for StaticOverlay
source§impl Message for StaticOverlay
impl Message for StaticOverlay
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for StaticOverlay
impl PartialEq for StaticOverlay
source§fn eq(&self, other: &StaticOverlay) -> bool
fn eq(&self, other: &StaticOverlay) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for StaticOverlay
Auto Trait Implementations§
impl Freeze for StaticOverlay
impl RefUnwindSafe for StaticOverlay
impl Send for StaticOverlay
impl Sync for StaticOverlay
impl Unpin for StaticOverlay
impl UnwindSafe for StaticOverlay
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request