pub struct WidgetConfig {Show 26 fields
pub label: Option<String>,
pub title: Option<String>,
pub placeholder: Option<String>,
pub max_length: Option<u32>,
pub min: Option<f64>,
pub max: Option<f64>,
pub step: Option<f64>,
pub default: Option<f64>,
pub options: Option<String>,
pub multi_select: Option<bool>,
pub action: Option<String>,
pub source: Option<String>,
pub alt: Option<String>,
pub mode: Option<String>,
pub accept: Option<Vec<String>>,
pub data: Option<String>,
pub x_axis: Option<String>,
pub y_axis: Option<String>,
pub value: Option<String>,
pub thresholds: Option<Vec<Threshold>>,
pub columns: Option<Vec<String>>,
pub sortable: Option<bool>,
pub content: Option<String>,
pub model: Option<String>,
pub input: Option<String>,
pub output: Option<String>,
}Expand description
Widget configuration - varies by widget type.
Fields§
§label: Option<String>Label text
title: Option<String>Title text
placeholder: Option<String>Placeholder text
max_length: Option<u32>Maximum input length
min: Option<f64>Minimum value
max: Option<f64>Maximum value
step: Option<f64>Step increment
default: Option<f64>Default value
options: Option<String>Selection options
multi_select: Option<bool>Allow multiple selection
action: Option<String>Button action
source: Option<String>Image source URL/path
alt: Option<String>Alt text
mode: Option<String>Upload mode
accept: Option<Vec<String>>Accepted MIME types
data: Option<String>Data source expression
x_axis: Option<String>X-axis field/expression
y_axis: Option<String>Y-axis field/expression
value: Option<String>Gauge value expression
thresholds: Option<Vec<Threshold>>Gauge thresholds
columns: Option<Vec<String>>Column definitions
sortable: Option<bool>Sortable flag
content: Option<String>Markdown content
model: Option<String>Model reference
input: Option<String>Input expression
output: Option<String>Output field
Trait Implementations§
Source§impl Clone for WidgetConfig
impl Clone for WidgetConfig
Source§fn clone(&self) -> WidgetConfig
fn clone(&self) -> WidgetConfig
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 WidgetConfig
impl Debug for WidgetConfig
Source§impl Default for WidgetConfig
impl Default for WidgetConfig
Source§fn default() -> WidgetConfig
fn default() -> WidgetConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for WidgetConfig
impl<'de> Deserialize<'de> for WidgetConfig
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
Auto Trait Implementations§
impl Freeze for WidgetConfig
impl RefUnwindSafe for WidgetConfig
impl Send for WidgetConfig
impl Sync for WidgetConfig
impl Unpin for WidgetConfig
impl UnwindSafe for WidgetConfig
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