pub enum TemplateOptions {
Inline {
inline: Vec<InlineOption>,
max_items: Option<u32>,
min_items: Option<u32>,
selected_values: Vec<String>,
},
Link {
link: Link,
max_items: Option<u32>,
min_items: Option<u32>,
selected_values: Vec<String>,
},
}Expand description
Representation of the options for a single template property.
Variants§
Implementations§
Source§impl TemplateOptions
impl TemplateOptions
pub fn inline<O>(options: Vec<O>) -> Selfwhere
O: Into<InlineOption>,
pub fn link<L>(link: L) -> Self
pub fn with_max_items<V>(self, value: V) -> Self
pub fn with_min_items<V>(self, value: V) -> Self
pub fn with_selected_value<V>(self, value: V) -> Selfwhere
V: ToString,
Trait Implementations§
Source§impl Debug for TemplateOptions
impl Debug for TemplateOptions
Auto Trait Implementations§
impl Freeze for TemplateOptions
impl RefUnwindSafe for TemplateOptions
impl Send for TemplateOptions
impl Sync for TemplateOptions
impl Unpin for TemplateOptions
impl UnwindSafe for TemplateOptions
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