pub struct PluggableMonitorSetting {
pub id: Option<String>,
pub label: Option<String>,
pub type: Option<LabelType>,
pub values: Vec<String>,
pub selected_value: String,
}
Expand description
A single Pluggable monitor setting
{
"id": "baudrate",
"label": "Baudrate",
"type": "enum",
"values": ["300","9600", "115200"],
"selectedValue": "9600",
}
Fields§
§id: Option<String>
The setting identifier, e.g. "baudrate"
label: Option<String>
A human-readable label of the setting (to be displayed on the GUI), e.g. "Baudrate"
type: Option<LabelType>
The setting type (at the moment only “enum” is available)
values: Vec<String>
The values allowed on “enum” types, e.g. vec!["300".to_string(), "9600".into(), "115200".into()]
selected_value: String
The selected value, e.g. "9600"
Trait Implementations§
Source§impl Clone for PluggableMonitorSetting
impl Clone for PluggableMonitorSetting
Source§fn clone(&self) -> PluggableMonitorSetting
fn clone(&self) -> PluggableMonitorSetting
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 PluggableMonitorSetting
impl Debug for PluggableMonitorSetting
Source§impl<'de> Deserialize<'de> for PluggableMonitorSetting
impl<'de> Deserialize<'de> for PluggableMonitorSetting
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 PluggableMonitorSetting
impl PartialEq for PluggableMonitorSetting
Source§impl Serialize for PluggableMonitorSetting
impl Serialize for PluggableMonitorSetting
impl Eq for PluggableMonitorSetting
impl StructuralPartialEq for PluggableMonitorSetting
Auto Trait Implementations§
impl Freeze for PluggableMonitorSetting
impl RefUnwindSafe for PluggableMonitorSetting
impl Send for PluggableMonitorSetting
impl Sync for PluggableMonitorSetting
impl Unpin for PluggableMonitorSetting
impl UnwindSafe for PluggableMonitorSetting
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