Struct pixelast::Graph [−][src]
pub struct Graph { pub id: String, pub name: String, pub unit: String, pub graph_type: GraphType, pub color: GraphColor, }
Graph definition in Pixela.
Fields
id: String
It is an ID for identifying the pixelation graph. Validation rule: ^[a-z][a-z0-9-]{1,16}
name: String
It is the name of the pixelation graph.
unit: String
It is a unit of the quantity recorded in the pixelation graph. Ex. commit, kilogram, calory.
graph_type: GraphType
It is the type of quantity to be handled in the graph.
color: GraphColor
Defines the display color of the pixel in the pixelation graph.