pub struct WidgetPost {Show 14 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: WidgetDateWidgetSettings,
pub items: Vec<WidgetPostItem>,
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: WidgetDateWidgetSettings§items: Vec<WidgetPostItem>§widget_type: StringAllowed values: post.
extra: Map<String, Value>Fields not described by the spec, e.g. instance-specific DB fields.
Trait Implementations§
Source§impl Clone for WidgetPost
impl Clone for WidgetPost
Source§impl Debug for WidgetPost
impl Debug for WidgetPost
Source§impl Default for WidgetPost
impl Default for WidgetPost
Source§impl<'de> Deserialize<'de> for WidgetPost
impl<'de> Deserialize<'de> for WidgetPost
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 WidgetPost
impl PartialEq for WidgetPost
Source§impl Serialize for WidgetPost
impl Serialize for WidgetPost
impl StructuralPartialEq for WidgetPost
Auto Trait Implementations§
impl Freeze for WidgetPost
impl RefUnwindSafe for WidgetPost
impl Send for WidgetPost
impl Sync for WidgetPost
impl Unpin for WidgetPost
impl UnsafeUnpin for WidgetPost
impl UnwindSafe for WidgetPost
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