pub struct RuntimeSchemaMarkerGraph {
pub key: String,
pub graph_type: MarkerGraphType,
pub color: Option<GraphColor>,
}
Expand description
A graph within a marker graph track, used in RuntimeSchemaMarkerSchema::graphs
.
Used with runtime-generated marker schemas. Use StaticSchemaMarkerGraph
when using StaticSchemaMarker
.
Fields§
§key: String
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 Clone for RuntimeSchemaMarkerGraph
impl Clone for RuntimeSchemaMarkerGraph
Source§fn clone(&self) -> RuntimeSchemaMarkerGraph
fn clone(&self) -> RuntimeSchemaMarkerGraph
Returns a copy 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 RuntimeSchemaMarkerGraph
impl Debug for RuntimeSchemaMarkerGraph
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 RuntimeSchemaMarkerGraph
impl RefUnwindSafe for RuntimeSchemaMarkerGraph
impl Send for RuntimeSchemaMarkerGraph
impl Sync for RuntimeSchemaMarkerGraph
impl Unpin for RuntimeSchemaMarkerGraph
impl UnwindSafe for RuntimeSchemaMarkerGraph
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