#[non_exhaustive]pub struct CommandInfos {Show 14 fields
pub addr: Option<CommandAddr>,
pub bang: bool,
pub bar: bool,
pub callback: Option<Function<CommandArgs, ()>>,
pub complete: Option<String>,
pub complete_arg: Option<String>,
pub count: Option<u32>,
pub definition: Option<String>,
pub keepscript: bool,
pub name: String,
pub nargs: CommandNArgs,
pub range: Option<CommandRange>,
pub register: bool,
pub script_id: i32,
}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.addr: Option<CommandAddr>
TODO: docs
bang: bool
Whether the command can take a !
modifier.
bar: bool
Whether the command can be followed by a |
and another command.
callback: Option<Function<CommandArgs, ()>>
Callback triggered by the command.
complete: Option<String>
Command complletion strategy.
complete_arg: Option<String>
TODO: docs
count: Option<u32>
TODO: docs
definition: Option<String>
TODO: docs
keepscript: bool
Whether to use the invocation location as opposed to the definition location in verbose messages.
name: String
The command name.
nargs: CommandNArgs
The number of arguments the command can take.
range: Option<CommandRange>
TODO: docs
register: bool
Whether the firrst argument to the command can be an optional register
name (like :del
, :put
or :yank
).
script_id: i32
TODO: docs
Trait Implementations§
Source§impl Clone for CommandInfos
impl Clone for CommandInfos
Source§fn clone(&self) -> CommandInfos
fn clone(&self) -> CommandInfos
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 CommandInfos
impl Debug for CommandInfos
Source§impl<'de> Deserialize<'de> for CommandInfos
impl<'de> Deserialize<'de> for CommandInfos
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 FromObject for CommandInfos
impl FromObject for CommandInfos
Source§impl Hash for CommandInfos
impl Hash for CommandInfos
Source§impl PartialEq for CommandInfos
impl PartialEq for CommandInfos
impl Eq for CommandInfos
impl StructuralPartialEq for CommandInfos
Auto Trait Implementations§
impl Freeze for CommandInfos
impl RefUnwindSafe for CommandInfos
impl Send for CommandInfos
impl Sync for CommandInfos
impl Unpin for CommandInfos
impl UnwindSafe for CommandInfos
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