pub struct BoxStyle {
pub fill: Option<Color>,
pub stroke: Option<StrokeStyle>,
pub shadow: Option<Shadow>,
}Expand description
Box style for rectangles and circles.
Fields§
§fill: Option<Color>Fill color (None = no fill)
stroke: Option<StrokeStyle>Stroke style (None = no stroke)
shadow: Option<Shadow>Shadow (None = no shadow)
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for BoxStyle
impl<'de> Deserialize<'de> for BoxStyle
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<BoxStyle, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<BoxStyle, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for BoxStyle
impl Serialize for BoxStyle
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for BoxStyle
Auto Trait Implementations§
impl Freeze for BoxStyle
impl RefUnwindSafe for BoxStyle
impl Send for BoxStyle
impl Sync for BoxStyle
impl Unpin for BoxStyle
impl UnwindSafe for BoxStyle
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