pub enum ItemSelector {
Anchor(ItemAnchor),
Typed(ItemSelectorTyped),
}Variants§
Anchor(ItemAnchor)
Back-compat: a command id string or a numeric index.
Typed(ItemSelectorTyped)
Explicit selector for non-command items (e.g. submenus).
Trait Implementations§
Source§impl Clone for ItemSelector
impl Clone for ItemSelector
Source§fn clone(&self) -> ItemSelector
fn clone(&self) -> ItemSelector
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 ItemSelector
impl Debug for ItemSelector
Source§impl<'de> Deserialize<'de> for ItemSelector
impl<'de> Deserialize<'de> for ItemSelector
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 ItemSelector
impl PartialEq for ItemSelector
impl Eq for ItemSelector
impl StructuralPartialEq for ItemSelector
Auto Trait Implementations§
impl Freeze for ItemSelector
impl RefUnwindSafe for ItemSelector
impl Send for ItemSelector
impl Sync for ItemSelector
impl Unpin for ItemSelector
impl UnsafeUnpin for ItemSelector
impl UnwindSafe for ItemSelector
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