pub struct SlashItem {
pub name: String,
pub kind: SlashKind,
pub description: String,
pub hint: String,
pub scope: Option<PluginScope>,
pub plugin: Option<String>,
}Expand description
One entry of the / menu.
Fields§
§name: StringWhat follows the /.
kind: SlashKind§description: String§hint: StringWhat to type after the name, e.g. <file> [focus].
scope: Option<PluginScope>Where it comes from (None: built in).
plugin: Option<String>The plugin that brings it (None: built in, or a standalone skill).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SlashItem
impl<'de> Deserialize<'de> for SlashItem
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 Eq for SlashItem
impl StructuralPartialEq for SlashItem
Auto Trait Implementations§
impl Forget for SlashItem
impl Freeze for SlashItem
impl Move for SlashItem
impl RefUnwindSafe for SlashItem
impl Send for SlashItem
impl Sync for SlashItem
impl Unpin for SlashItem
impl UnsafeUnpin for SlashItem
impl UnwindSafe for SlashItem
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