#[non_exhaustive]pub struct WidgetMarker {
pub display_type: Option<String>,
pub label: Option<String>,
pub time: Option<String>,
pub value: String,
pub additional_properties: BTreeMap<String, Value>,
/* private fields */
}
Expand description
Markers allow you to add visual conditional formatting for your graphs.
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.display_type: Option<String>
Combination of:
- A severity error, warning, ok, or info
- A line type: dashed, solid, or bold
In this case of a Distribution widget, this can be set to be
x_axis_percentile
.
label: Option<String>
Label to display over the marker.
time: Option<String>
Timestamp for the widget.
value: String
Value to apply. Can be a single value y = 15 or a range of values 0 < y < 10.
additional_properties: BTreeMap<String, Value>
Implementations§
Trait Implementations§
Source§impl Clone for WidgetMarker
impl Clone for WidgetMarker
Source§fn clone(&self) -> WidgetMarker
fn clone(&self) -> WidgetMarker
Returns a duplicate 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 WidgetMarker
impl Debug for WidgetMarker
Source§impl<'de> Deserialize<'de> for WidgetMarker
impl<'de> Deserialize<'de> for WidgetMarker
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 WidgetMarker
impl PartialEq for WidgetMarker
Source§impl Serialize for WidgetMarker
impl Serialize for WidgetMarker
impl StructuralPartialEq for WidgetMarker
Auto Trait Implementations§
impl Freeze for WidgetMarker
impl RefUnwindSafe for WidgetMarker
impl Send for WidgetMarker
impl Sync for WidgetMarker
impl Unpin for WidgetMarker
impl UnwindSafe for WidgetMarker
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