pub struct Mask {
pub size: Option<Size>,
pub offset: LayerOffset,
pub invert: bool,
pub background: Option<Background>,
pub rectangle: Option<Rectangle>,
pub ellipse: Option<Ellipse>,
pub polygon: Option<Polygon>,
pub icon: Option<Icon>,
pub typography: Option<Typography>,
}Fields§
§size: Option<Size>The mask’s Size.
offset: LayerOffsetThe mask’s LayerOffset.
invert: boolA flag to control the behavior of the mask.
False means only visible pixels are used in the mask. True means only invisible pixels are used in the mask.
background: Option<Background>A background attribute for the mask.
rectangle: Option<Rectangle>A rectangle attribute for the mask.
ellipse: Option<Ellipse>An ellipse attribute for the mask.
polygon: Option<Polygon>An polygon attribute for the mask.
icon: Option<Icon>An icon attribute for the mask.
typography: Option<Typography>A typography attribute for the mask.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Mask
impl<'de> Deserialize<'de> for Mask
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
Auto Trait Implementations§
impl Freeze for Mask
impl RefUnwindSafe for Mask
impl Send for Mask
impl Sync for Mask
impl Unpin for Mask
impl UnsafeUnpin for Mask
impl UnwindSafe for Mask
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
Mutably borrows from an owned value. Read more