pub struct Chart {
pub chart_type: ChartType,
pub title: Option<String>,
pub x_label: Option<String>,
pub y_label: Option<String>,
pub x: Option<ChartAxis>,
pub y: Option<ChartAxis>,
pub elements: Option<Value>,
}Expand description
Structured representation of a matplotlib figure. elements is kept as raw
JSON so new chart types don’t require an SDK bump.
Fields§
§chart_type: ChartType§title: Option<String>§x_label: Option<String>§y_label: Option<String>§x: Option<ChartAxis>§y: Option<ChartAxis>§elements: Option<Value>Loose per-type data (points/bars/slices). Raw decoded JSON.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Chart
impl<'de> Deserialize<'de> for Chart
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 Chart
impl RefUnwindSafe for Chart
impl Send for Chart
impl Sync for Chart
impl Unpin for Chart
impl UnsafeUnpin for Chart
impl UnwindSafe for Chart
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