pub struct Axis<T: AxisKindMarker> {
pub type: AxisType,
pub name: Option<String>,
pub data: Option<Vec<T>>,
pub extra: Option<Value>,
}Expand description
Axis (cartesian)
Fields§
§type: AxisTypeAxis type: value, category, time, log
name: Option<String>Axis name
data: Option<Vec<T>>Data for category axis
extra: Option<Value>Additional raw axis options
Implementations§
Trait Implementations§
Source§impl<'de, T> Deserialize<'de> for Axis<T>where
T: Deserialize<'de> + AxisKindMarker,
impl<'de, T> Deserialize<'de> for Axis<T>where
T: Deserialize<'de> + AxisKindMarker,
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<T> Freeze for Axis<T>
impl<T> RefUnwindSafe for Axis<T>where
T: RefUnwindSafe,
impl<T> Send for Axis<T>where
T: Send,
impl<T> Sync for Axis<T>where
T: Sync,
impl<T> Unpin for Axis<T>where
T: Unpin,
impl<T> UnwindSafe for Axis<T>where
T: UnwindSafe,
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