pub struct Layer {
pub size: Option<Size>,
pub offset: LayerOffset,
pub background: Option<Background>,
pub rectangle: Option<Rectangle>,
pub ellipse: Option<Ellipse>,
pub polygon: Option<Polygon>,
pub icon: Option<Icon>,
pub typography: Option<Typography>,
pub mask: Option<Mask>,
}Fields§
§size: Option<Size>The layer’s Size
offset: LayerOffsetThe layer’s LayerOffset.
background: Option<Background>A background attribute for the layer.
rectangle: Option<Rectangle>A rectangle attribute for the layer.
ellipse: Option<Ellipse>An ellipse attribute for the layer.
polygon: Option<Polygon>An polygon attribute for the layer.
icon: Option<Icon>An icon attribute for the layer.
typography: Option<Typography>A typography attribute for the layer.
mask: Option<Mask>A mask attribute for the layer.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Layer
impl<'de> Deserialize<'de> for Layer
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 Layer
impl RefUnwindSafe for Layer
impl Send for Layer
impl Sync for Layer
impl Unpin for Layer
impl UnsafeUnpin for Layer
impl UnwindSafe for Layer
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