pub struct FreeformStyle {
pub opacity: Option<f64>,
pub fill: Option<FreeformPaint>,
pub stroke: Option<FreeformStrokeStyle>,
pub shadows: Vec<FreeformShadow>,
}Expand description
Shared visual styling for a native board item.
Fields§
§opacity: Option<f64>Whole-item opacity.
fill: Option<FreeformPaint>Fill paint.
stroke: Option<FreeformStrokeStyle>Stroke style.
shadows: Vec<FreeformShadow>Ordered shadow effects.
Trait Implementations§
Source§impl Clone for FreeformStyle
impl Clone for FreeformStyle
Source§fn clone(&self) -> FreeformStyle
fn clone(&self) -> FreeformStyle
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 FreeformStyle
impl Debug for FreeformStyle
Source§impl Default for FreeformStyle
impl Default for FreeformStyle
Source§fn default() -> FreeformStyle
fn default() -> FreeformStyle
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for FreeformStyle
impl<'de> Deserialize<'de> for FreeformStyle
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 for FreeformStyle
impl PartialEq for FreeformStyle
Source§impl Serialize for FreeformStyle
impl Serialize for FreeformStyle
impl StructuralPartialEq for FreeformStyle
Auto Trait Implementations§
impl Freeze for FreeformStyle
impl RefUnwindSafe for FreeformStyle
impl Send for FreeformStyle
impl Sync for FreeformStyle
impl Unpin for FreeformStyle
impl UnsafeUnpin for FreeformStyle
impl UnwindSafe for FreeformStyle
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