pub struct ChartChannel {
pub name: String,
pub label: String,
pub values: Vec<f64>,
pub color: Option<Color>,
}Expand description
A named data channel in a chart (e.g. “x”, “y”, “open”, “high”, “low”, “close”).
Channel names are internal — Shape users call typed methods like .x(), .y(),
never write string keys directly.
Fields§
§name: StringRole name — set by builder method, never by user (e.g. “x”, “y”, “open”)
label: StringDisplay label
values: Vec<f64>Extracted numeric data
color: Option<Color>Trait Implementations§
Source§impl Clone for ChartChannel
impl Clone for ChartChannel
Source§fn clone(&self) -> ChartChannel
fn clone(&self) -> ChartChannel
Returns a duplicate 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 ChartChannel
impl Debug for ChartChannel
Source§impl<'de> Deserialize<'de> for ChartChannel
impl<'de> Deserialize<'de> for ChartChannel
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 PartialEq for ChartChannel
impl PartialEq for ChartChannel
Source§impl Serialize for ChartChannel
impl Serialize for ChartChannel
impl StructuralPartialEq for ChartChannel
Auto Trait Implementations§
impl Freeze for ChartChannel
impl RefUnwindSafe for ChartChannel
impl Send for ChartChannel
impl Sync for ChartChannel
impl Unpin for ChartChannel
impl UnsafeUnpin for ChartChannel
impl UnwindSafe for ChartChannel
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