pub struct WidgetCommon {Show 15 fields
pub actions: Option<Vec<Value>>,
pub empty_strategy: Option<String>,
pub empty_text: Option<String>,
pub filter: Option<WidgetDateFilterVariant1>,
pub help_link: Option<String>,
pub is_mandatory: Option<bool>,
pub key: String,
pub orientation: Option<String>,
pub replacement: Option<String>,
pub title: String,
pub widget_settings: WidgetSettingsCommon,
pub groupings: BTreeMap<String, WidgetGroupingOption>,
pub items: Vec<WidgetCommonItem>,
pub widget_type: String,
pub extra: Map<String, Value>,
}Fields§
§actions: Option<Vec<Value>>§empty_strategy: Option<String>Strategy for handling empty widget content
Allowed values: HIDE, SHOW.
empty_text: Option<String>§filter: Option<WidgetDateFilterVariant1>§help_link: Option<String>§is_mandatory: Option<bool>§key: String§orientation: Option<String>Allowed values: horizontal, vertical.
replacement: Option<String>§title: String§widget_settings: WidgetSettingsCommonSettings specific to common widgets
groupings: BTreeMap<String, WidgetGroupingOption>Grouping configuration for widgets
items: Vec<WidgetCommonItem>§widget_type: StringAllowed values: common.
extra: Map<String, Value>Fields not described by the spec, e.g. instance-specific DB fields.
Trait Implementations§
Source§impl Clone for WidgetCommon
impl Clone for WidgetCommon
Source§impl Debug for WidgetCommon
impl Debug for WidgetCommon
Source§impl Default for WidgetCommon
impl Default for WidgetCommon
Source§impl<'de> Deserialize<'de> for WidgetCommon
impl<'de> Deserialize<'de> for WidgetCommon
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 WidgetCommon
impl PartialEq for WidgetCommon
Source§impl Serialize for WidgetCommon
impl Serialize for WidgetCommon
impl StructuralPartialEq for WidgetCommon
Auto Trait Implementations§
impl Freeze for WidgetCommon
impl RefUnwindSafe for WidgetCommon
impl Send for WidgetCommon
impl Sync for WidgetCommon
impl Unpin for WidgetCommon
impl UnsafeUnpin for WidgetCommon
impl UnwindSafe for WidgetCommon
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