pub struct Grid {
pub left: Option<Position>,
pub right: Option<Position>,
pub top: Option<Position>,
pub bottom: Option<Position>,
pub contain_label: Option<bool>,
pub background_color: Option<Value>,
pub border_color: Option<Value>,
pub border_width: Option<f64>,
pub show: Option<bool>,
pub z: Option<i32>,
pub zlevel: Option<i32>,
pub extra: Option<Value>,
}
Expand description
Grid component
Fields§
§left: Option<Position>
Distance between grid and left side (Keyword, numeric px, percent, or other)
right: Option<Position>
Distance between grid and right side (Keyword, numeric px, percent, or other)
top: Option<Position>
Distance between grid and top side (Keyword, numeric px, percent, or other)
bottom: Option<Position>
Distance between grid and bottom side (Keyword, numeric px, percent, or other)
contain_label: Option<bool>
Whether the grid area contain the axis labels
background_color: Option<Value>
Background color of the grid
border_color: Option<Value>
Border color of the grid
border_width: Option<f64>
Border width of the grid
show: Option<bool>
Show the border of the grid
z: Option<i32>
z-index of the grid component
zlevel: Option<i32>
z-level of the grid component
extra: Option<Value>
Additional raw grid options
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Grid
impl<'de> Deserialize<'de> for Grid
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
Auto Trait Implementations§
impl Freeze for Grid
impl RefUnwindSafe for Grid
impl Send for Grid
impl Sync for Grid
impl Unpin for Grid
impl UnwindSafe for Grid
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