Enum grafana_plugin_sdk::data::ValueMapping [−][src]
pub enum ValueMapping {
ValueMapper(HashMap<String, ValueMappingResult>),
SpecialValueMapper {
match_: SpecialValueMatch,
result: ValueMappingResult,
},
RangeValueMapper {
from: ConfFloat64,
to: ConfFloat64,
result: ValueMappingResult,
},
}Expand description
Allows input values to be mapped to text and colour.
Variants
ValueMapper(HashMap<String, ValueMappingResult>)
Tuple Fields
Map strings to new strings directly.
SpecialValueMapper
Fields
match_: SpecialValueMatchThe input value to match.
result: ValueMappingResultThe result to be shown instead of the matched value.
Map special values to new values.
RangeValueMapper
Fields
from: ConfFloat64The minimum value to match.
to: ConfFloat64The maximum value to match.
result: ValueMappingResultThe result to be shown instead of the matched values.
Map ranges of floats to new values.
Trait Implementations
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
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl RefUnwindSafe for ValueMapping
impl Send for ValueMapping
impl Sync for ValueMapping
impl Unpin for ValueMapping
impl UnwindSafe for ValueMapping
Blanket Implementations
Mutably borrows from an owned value. Read more
Wrap the input message T in a tonic::Request
pub fn vzip(self) -> V
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more
