pub struct Widget {
pub id: String,
pub title: String,
pub widget_type: String,
pub position: Position,
pub size: Size,
pub data: WidgetData,
pub config: HashMap<String, Value>,
}Expand description
Dashboard widget
Fields§
§id: StringWidget identifier
title: StringWidget title
widget_type: StringWidget type
position: PositionWidget position
size: SizeWidget size
data: WidgetDataWidget data
config: HashMap<String, Value>Widget configuration
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Widget
impl<'de> Deserialize<'de> for Widget
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 Widget
impl RefUnwindSafe for Widget
impl Send for Widget
impl Sync for Widget
impl Unpin for Widget
impl UnwindSafe for Widget
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