pub struct SeriesConfig {
pub series_id: String,
pub source_id: Option<String>,
pub label: Option<RichText>,
pub x_column: ColumnId,
pub y_column: ColumnId,
pub render_type: DataRenderType,
}Expand description
One series — which columns to draw, with which render type and style.
Columns are referenced by the id used when registering them with the
ColumnPool. Renderer::prepare resolves them to allocation-stamped GPU
handles; the resulting PreparedFrame owns those handles for immutable
paint recording.
Fields§
§series_id: String§source_id: Option<String>§label: Option<RichText>§x_column: ColumnIdX column id (must match the id passed to add_column).
y_column: ColumnIdY column id.
render_type: DataRenderTypeTrait Implementations§
Source§impl Clone for SeriesConfig
impl Clone for SeriesConfig
Source§impl Debug for SeriesConfig
impl Debug for SeriesConfig
Source§impl<'de> Deserialize<'de> for SeriesConfig
impl<'de> Deserialize<'de> for SeriesConfig
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 SeriesConfig
impl PartialEq for SeriesConfig
Source§impl Serialize for SeriesConfig
impl Serialize for SeriesConfig
impl StructuralPartialEq for SeriesConfig
Auto Trait Implementations§
impl Freeze for SeriesConfig
impl RefUnwindSafe for SeriesConfig
impl Send for SeriesConfig
impl Sync for SeriesConfig
impl Unpin for SeriesConfig
impl UnsafeUnpin for SeriesConfig
impl UnwindSafe for SeriesConfig
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