pub struct Menu {
pub prompt: String,
pub visible: Option<Visible>,
pub depends_on: Vec<Expression>,
pub entries: Vec<Entry>,
}Expand description
This defines a menu block, see “Menu structure” for more information. The only possible options are dependencies and “visible” attributes.
Fields§
§prompt: String§visible: Option<Visible>§depends_on: Vec<Expression>§entries: Vec<Entry>Trait Implementations§
Source§impl<'de> Deserialize<'de> for Menu
impl<'de> Deserialize<'de> for Menu
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
impl StructuralPartialEq for Menu
Auto Trait Implementations§
impl Freeze for Menu
impl RefUnwindSafe for Menu
impl Send for Menu
impl Sync for Menu
impl Unpin for Menu
impl UnsafeUnpin for Menu
impl UnwindSafe for Menu
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