Struct grafana_plugin_sdk::data::ValueMappingResult
source · #[non_exhaustive]pub struct ValueMappingResult {
pub text: Option<String>,
pub color: Option<String>,
pub index: Option<isize>,
}
Expand description
A new value to be displayed when a ValueMapping
matches an input value.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.text: Option<String>
The text to display.
color: Option<String>
The colour to use when displaying the value.
index: Option<isize>
Used for ordering in the UI.
Trait Implementations§
source§impl Clone for ValueMappingResult
impl Clone for ValueMappingResult
source§fn clone(&self) -> ValueMappingResult
fn clone(&self) -> ValueMappingResult
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 ValueMappingResult
impl Debug for ValueMappingResult
source§impl Default for ValueMappingResult
impl Default for ValueMappingResult
source§fn default() -> ValueMappingResult
fn default() -> ValueMappingResult
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for ValueMappingResult
impl<'de> Deserialize<'de> for ValueMappingResult
source§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
source§impl PartialEq for ValueMappingResult
impl PartialEq for ValueMappingResult
source§fn eq(&self, other: &ValueMappingResult) -> bool
fn eq(&self, other: &ValueMappingResult) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ValueMappingResult
impl Serialize for ValueMappingResult
impl Eq for ValueMappingResult
impl StructuralEq for ValueMappingResult
impl StructuralPartialEq for ValueMappingResult
Auto Trait Implementations§
impl RefUnwindSafe for ValueMappingResult
impl Send for ValueMappingResult
impl Sync for ValueMappingResult
impl Unpin for ValueMappingResult
impl UnwindSafe for ValueMappingResult
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request