pub struct ShadowConfig {
pub enabled: bool,
pub color: String,
pub offset_x: f32,
pub offset_y: f32,
pub blur_radius: f32,
}Expand description
Shadow configuration.
Fields§
§enabled: boolWhether to enable shadow effects.
color: StringThe color of the shadow (hex string).
offset_x: f32The horizontal offset of the shadow.
offset_y: f32The vertical offset of the shadow.
blur_radius: f32The blur radius of the shadow.
Trait Implementations§
Source§impl Clone for ShadowConfig
impl Clone for ShadowConfig
Source§fn clone(&self) -> ShadowConfig
fn clone(&self) -> ShadowConfig
Returns a duplicate 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 ShadowConfig
impl Debug for ShadowConfig
Source§impl<'de> Deserialize<'de> for ShadowConfig
impl<'de> Deserialize<'de> for ShadowConfig
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 ShadowConfig
impl RefUnwindSafe for ShadowConfig
impl Send for ShadowConfig
impl Sync for ShadowConfig
impl Unpin for ShadowConfig
impl UnsafeUnpin for ShadowConfig
impl UnwindSafe for ShadowConfig
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