pub struct GradientFill {
pub gradient_type: Option<String>,
pub degree: Option<f64>,
pub left: Option<f64>,
pub right: Option<f64>,
pub top: Option<f64>,
pub bottom: Option<f64>,
pub stops: Vec<GradientStop>,
}Expand description
Gradient fill definition.
Fields§
§gradient_type: Option<String>Gradient type: “linear” or “path”.
degree: Option<f64>Rotation angle in degrees for linear gradients.
left: Option<f64>Left coordinate for path gradients (0.0-1.0).
right: Option<f64>Right coordinate for path gradients (0.0-1.0).
top: Option<f64>Top coordinate for path gradients (0.0-1.0).
bottom: Option<f64>Bottom coordinate for path gradients (0.0-1.0).
stops: Vec<GradientStop>Gradient stops.
Trait Implementations§
Source§impl Clone for GradientFill
impl Clone for GradientFill
Source§fn clone(&self) -> GradientFill
fn clone(&self) -> GradientFill
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 GradientFill
impl Debug for GradientFill
Source§impl<'de> Deserialize<'de> for GradientFill
impl<'de> Deserialize<'de> for GradientFill
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 GradientFill
impl PartialEq for GradientFill
Source§impl Serialize for GradientFill
impl Serialize for GradientFill
impl StructuralPartialEq for GradientFill
Auto Trait Implementations§
impl Freeze for GradientFill
impl RefUnwindSafe for GradientFill
impl Send for GradientFill
impl Sync for GradientFill
impl Unpin for GradientFill
impl UnwindSafe for GradientFill
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