pub struct StaticSchemaMarkerGraph {
pub key: &'static str,
pub graph_type: MarkerGraphType,
pub color: Option<GraphColor>,
}
Expand description
A graph within a marker graph track, used in StaticSchemaMarker::GRAPHS
.
Used with runtime-generated marker schemas. Use RuntimeSchemaMarkerGraph
when using RuntimeSchemaMarkerSchema
.
Fields§
§key: &'static str
The key of a number field that’s declared in the marker schema.
The values of this field are the values of this graph line / bar graph segment.
graph_type: MarkerGraphType
Whether this marker graph segment is a line or a bar graph segment.
color: Option<GraphColor>
The color of the graph segment. If None
, the choice is up to the front-end.
Trait Implementations§
Source§impl From<&StaticSchemaMarkerGraph> for RuntimeSchemaMarkerGraph
impl From<&StaticSchemaMarkerGraph> for RuntimeSchemaMarkerGraph
Source§fn from(schema: &StaticSchemaMarkerGraph) -> Self
fn from(schema: &StaticSchemaMarkerGraph) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for StaticSchemaMarkerGraph
impl RefUnwindSafe for StaticSchemaMarkerGraph
impl Send for StaticSchemaMarkerGraph
impl Sync for StaticSchemaMarkerGraph
impl Unpin for StaticSchemaMarkerGraph
impl UnwindSafe for StaticSchemaMarkerGraph
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