Struct vega_lite_4::GridColorExprRef
source · pub struct GridColorExprRef {
pub expr: Option<String>,
pub condition: Option<ConditionUnion>,
pub value: Option<String>,
}
Fields§
§expr: Option<String>
Vega expression (which can refer to Vega-Lite parameters).
condition: Option<ConditionUnion>
§value: Option<String>
A constant value in visual domain (e.g., "red"
/ "#0099ff"
/ gradient
definition for color, values
between 0
to 1
for opacity).
Trait Implementations§
source§impl Clone for GridColorExprRef
impl Clone for GridColorExprRef
source§fn clone(&self) -> GridColorExprRef
fn clone(&self) -> GridColorExprRef
Returns a copy 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 GridColorExprRef
impl Debug for GridColorExprRef
source§impl Default for GridColorExprRef
impl Default for GridColorExprRef
source§fn default() -> GridColorExprRef
fn default() -> GridColorExprRef
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for GridColorExprRef
impl<'de> Deserialize<'de> for GridColorExprRef
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 From<GridColorExprRef> for GridColorUnion
impl From<GridColorExprRef> for GridColorUnion
source§fn from(original: GridColorExprRef) -> GridColorUnion
fn from(original: GridColorExprRef) -> GridColorUnion
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for GridColorExprRef
impl Send for GridColorExprRef
impl Sync for GridColorExprRef
impl Unpin for GridColorExprRef
impl UnwindSafe for GridColorExprRef
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