pub struct SolidPaint {
pub visible: Option<bool>,
pub opacity: Option<f64>,
pub blend_mode: BlendMode,
pub type: Type,
pub color: Box<Rgba>,
pub bound_variables: Option<Box<SolidPaintAllOfBoundVariables>>,
}
Fields§
§visible: Option<bool>
Is the paint enabled?
opacity: Option<f64>
Overall opacity of paint (colors within the paint can also have opacity values which would blend with this)
blend_mode: BlendMode
How this node blends with nodes behind it in the scene
type: Type
The string literal "SOLID" representing the paint’s type. Always check the type
before reading other properties.
color: Box<Rgba>
Solid color of the paint
bound_variables: Option<Box<SolidPaintAllOfBoundVariables>>
Implementations§
Source§impl SolidPaint
impl SolidPaint
Trait Implementations§
Source§impl Clone for SolidPaint
impl Clone for SolidPaint
Source§fn clone(&self) -> SolidPaint
fn clone(&self) -> SolidPaint
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 SolidPaint
impl Debug for SolidPaint
Source§impl Default for SolidPaint
impl Default for SolidPaint
Source§fn default() -> SolidPaint
fn default() -> SolidPaint
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SolidPaint
impl<'de> Deserialize<'de> for SolidPaint
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 SolidPaint
impl PartialEq for SolidPaint
Source§impl Serialize for SolidPaint
impl Serialize for SolidPaint
impl StructuralPartialEq for SolidPaint
Auto Trait Implementations§
impl Freeze for SolidPaint
impl RefUnwindSafe for SolidPaint
impl Send for SolidPaint
impl Sync for SolidPaint
impl Unpin for SolidPaint
impl UnwindSafe for SolidPaint
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