#[non_exhaustive]pub struct VisualMapPiece {
pub min: Option<i64>,
pub max: Option<i64>,
pub color: String,
pub label: String,
/* private fields */
}Expand description
An ECharts visual map of type ‘piecewise’ contain many pieces. Each piece has a min, max, and color with which it’s rendered.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.min: Option<i64>Optional. Minimum value for the piece.
max: Option<i64>Optional. Minimum value for the piece.
color: StringOptional. Color to render the piece in when the value is between min and max.
label: StringOptional. Label used in visual map controller.
Implementations§
Trait Implementations§
Source§impl Clone for VisualMapPiece
impl Clone for VisualMapPiece
Source§fn clone(&self) -> VisualMapPiece
fn clone(&self) -> VisualMapPiece
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 VisualMapPiece
impl Debug for VisualMapPiece
Source§impl Default for VisualMapPiece
impl Default for VisualMapPiece
Source§fn default() -> VisualMapPiece
fn default() -> VisualMapPiece
Returns the “default value” for a type. Read more
Source§impl Message for VisualMapPiece
impl Message for VisualMapPiece
Source§impl PartialEq for VisualMapPiece
impl PartialEq for VisualMapPiece
Source§fn eq(&self, other: &VisualMapPiece) -> bool
fn eq(&self, other: &VisualMapPiece) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for VisualMapPiece
Auto Trait Implementations§
impl Freeze for VisualMapPiece
impl RefUnwindSafe for VisualMapPiece
impl Send for VisualMapPiece
impl Sync for VisualMapPiece
impl Unpin for VisualMapPiece
impl UnsafeUnpin for VisualMapPiece
impl UnwindSafe for VisualMapPiece
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