pub struct ExtendedVariableUpdate {
pub label: Option<String>,
pub unit: Option<String>,
pub colour: Option<String>,
pub axis: Option<u8>,
pub graph: Option<Graph>,
}Expand description
An update to an extended data variable.
Any omitted fields will use the previously set values if this extended variable already exists, or the default values if it doesn’t.
§Default colours
| Variable | Colour |
|---|---|
| v7 | 339933 |
| v8 | ccff66 |
| v9 | efcf21 |
| v10 | ff5555 |
| v11 | 0a72b1 |
| v12 | dd5fc9 |
Fields§
§label: Option<String>A label for this extended variable. Limited to twenty characters.
This field is required if this is a new extended variable.
unit: Option<String>A unit for this extended variable. Limited to ten characters.
This field is required if this is a new extended variable.
colour: Option<String>A colour to use for this extended variable, formatted as six lowercase hexadecimal digits without leading
# – for example, ff0000 for bright red.
axis: Option<u8>The axis to use for this extended variable. Must be between zero and five. The default is zero.
Parameters placed on the same axis are shown on the same graph scale.
graph: Option<Graph>How to graph this extended variable.
The default is Graph::Line.
Trait Implementations§
Source§impl Clone for ExtendedVariableUpdate
impl Clone for ExtendedVariableUpdate
Source§fn clone(&self) -> ExtendedVariableUpdate
fn clone(&self) -> ExtendedVariableUpdate
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more