Struct tbot::types::sticker::mask_position::MaskPosition
source · #[non_exhaustive]pub struct MaskPosition {
pub point: Point,
pub x_shift: f64,
pub y_shift: f64,
pub scale: f64,
}
Expand description
Represents a MaskPosition
.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.point: Point
The position point of the mask.
x_shift: f64
The shift of the mask by X.
y_shift: f64
The shift of the mask by Y.
scale: f64
The scale of the mask.
Trait Implementations§
source§impl Clone for MaskPosition
impl Clone for MaskPosition
source§fn clone(&self) -> MaskPosition
fn clone(&self) -> MaskPosition
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for MaskPosition
impl Debug for MaskPosition
source§impl<'de> Deserialize<'de> for MaskPosition
impl<'de> Deserialize<'de> for MaskPosition
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<MaskPosition> for MaskPosition
impl PartialEq<MaskPosition> for MaskPosition
source§fn eq(&self, other: &MaskPosition) -> bool
fn eq(&self, other: &MaskPosition) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.