pub struct IntentSlotTemplate {
pub slots: Vec<String>,
pub layout: Option<String>,
}Expand description
A slot list and optional layout name for one render mode of one intent.
Slots are ordered names from the fixed vocabulary:
title, body, fields, actions, relationships, pagination, metadata, stats.
The layout field names a component to use as the outer container
(e.g., "Table", "Card", "Form").
Fields§
§slots: Vec<String>Ordered slot names to include in this render.
layout: Option<String>Optional outer container component name.
Trait Implementations§
Source§impl Clone for IntentSlotTemplate
impl Clone for IntentSlotTemplate
Source§fn clone(&self) -> IntentSlotTemplate
fn clone(&self) -> IntentSlotTemplate
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 IntentSlotTemplate
impl Debug for IntentSlotTemplate
Source§impl Default for IntentSlotTemplate
impl Default for IntentSlotTemplate
Source§fn default() -> IntentSlotTemplate
fn default() -> IntentSlotTemplate
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for IntentSlotTemplate
impl<'de> Deserialize<'de> for IntentSlotTemplate
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 IntentSlotTemplate
impl RefUnwindSafe for IntentSlotTemplate
impl Send for IntentSlotTemplate
impl Sync for IntentSlotTemplate
impl Unpin for IntentSlotTemplate
impl UnsafeUnpin for IntentSlotTemplate
impl UnwindSafe for IntentSlotTemplate
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