pub struct GradientOverlayStyle {
pub layer_style: LayerStyle,
pub blend_mode: Option<FloatValue>,
pub color: Option<ColorValue>,
pub opacity: Option<FloatValue>,
pub gradient: Option<GradientColors>,
pub smoothness: Option<FloatValue>,
pub angle: Option<FloatValue>,
pub gradient_type: Option<GradientType>,
pub reverse: Option<FloatValue>,
pub align: Option<FloatValue>,
pub scale: Option<FloatValue>,
pub offset: Option<FloatValue>,
}Expand description
Fields§
§layer_style: LayerStyle§blend_mode: Option<FloatValue>§color: Option<ColorValue>§opacity: Option<FloatValue>§gradient: Option<GradientColors>§smoothness: Option<FloatValue>§angle: Option<FloatValue>§gradient_type: Option<GradientType>§reverse: Option<FloatValue>§align: Option<FloatValue>Align with layer
scale: Option<FloatValue>§offset: Option<FloatValue>Trait Implementations§
Source§impl Clone for GradientOverlayStyle
impl Clone for GradientOverlayStyle
Source§fn clone(&self) -> GradientOverlayStyle
fn clone(&self) -> GradientOverlayStyle
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 GradientOverlayStyle
impl Debug for GradientOverlayStyle
Source§impl<'de> Deserialize<'de> for GradientOverlayStyle
impl<'de> Deserialize<'de> for GradientOverlayStyle
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 GradientOverlayStyle
impl PartialEq for GradientOverlayStyle
Source§impl Serialize for GradientOverlayStyle
impl Serialize for GradientOverlayStyle
impl StructuralPartialEq for GradientOverlayStyle
Auto Trait Implementations§
impl Freeze for GradientOverlayStyle
impl RefUnwindSafe for GradientOverlayStyle
impl Send for GradientOverlayStyle
impl Sync for GradientOverlayStyle
impl Unpin for GradientOverlayStyle
impl UnwindSafe for GradientOverlayStyle
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