pub struct ConfigCommand {
pub name: String,
pub description: String,
pub aliases: Vec<String>,
pub shell: Option<String>,
pub url: Option<String>,
pub notify: Option<String>,
pub accepts_args: bool,
}Expand description
A command defined in a config plugin.
Fields§
§name: StringCommand name
description: StringCommand description
aliases: Vec<String>Aliases for the command
shell: Option<String>Shell command to execute (mutually exclusive with url)
url: Option<String>URL to open (mutually exclusive with shell)
notify: Option<String>Notify message to show
accepts_args: boolWhether this command accepts arguments
Trait Implementations§
Source§impl Clone for ConfigCommand
impl Clone for ConfigCommand
Source§fn clone(&self) -> ConfigCommand
fn clone(&self) -> ConfigCommand
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 ConfigCommand
impl Debug for ConfigCommand
Source§impl<'de> Deserialize<'de> for ConfigCommand
impl<'de> Deserialize<'de> for ConfigCommand
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
Auto Trait Implementations§
impl Freeze for ConfigCommand
impl RefUnwindSafe for ConfigCommand
impl Send for ConfigCommand
impl Sync for ConfigCommand
impl Unpin for ConfigCommand
impl UnsafeUnpin for ConfigCommand
impl UnwindSafe for ConfigCommand
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more