pub struct MenuValue {
pub display_name: Option<String>,
pub icon_url: Option<String>,
pub state: Option<String>,
}Expand description
A single value that is part of a MenuItem.
This type is not used in any activity, and only used as part of another schema.
Fields§
§display_name: Option<String>The name to display for the menu item. If you specify this property for a built-in menu item, the default contextual voice command for that menu item is not shown.
icon_url: Option<String>URL of an icon to display with the menu item.
state: Option<String>The state that this value applies to. Allowed values are:
- DEFAULT - Default value shown when displayed in the menuItems list.
- PENDING - Value shown when the menuItem has been selected by the user but can still be cancelled.
- CONFIRMED - Value shown when the menuItem has been selected by the user and can no longer be cancelled.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for MenuValue
impl<'de> Deserialize<'de> for MenuValue
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 Part for MenuValue
Auto Trait Implementations§
impl Freeze for MenuValue
impl RefUnwindSafe for MenuValue
impl Send for MenuValue
impl Sync for MenuValue
impl Unpin for MenuValue
impl UnwindSafe for MenuValue
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