#[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: boolWhether the command can take a ! modifier.
bar: boolWhether 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: boolWhether to use the invocation location as opposed to the definition location in verbose messages.
name: StringThe command name.
nargs: CommandNArgsThe number of arguments the command can take.
range: Option<CommandRange>TODO: docs
register: boolWhether the firrst argument to the command can be an optional register
name (like :del, :put or :yank).
script_id: i32TODO: docs
Trait Implementations
sourceimpl Clone for CommandInfos
impl Clone for CommandInfos
sourcefn clone(&self) -> CommandInfos
fn clone(&self) -> CommandInfos
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for CommandInfos
impl Debug for CommandInfos
sourceimpl<'de> Deserialize<'de> for CommandInfos
impl<'de> Deserialize<'de> for CommandInfos
sourcefn deserialize<__D>(
__deserializer: __D
) -> Result<CommandInfos, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<CommandInfos, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl FromObject for CommandInfos
impl FromObject for CommandInfos
fn from_object(obj: Object) -> Result<CommandInfos, Error>
sourceimpl Hash for CommandInfos
impl Hash for CommandInfos
sourceimpl PartialEq<CommandInfos> for CommandInfos
impl PartialEq<CommandInfos> for CommandInfos
sourcefn eq(&self, other: &CommandInfos) -> bool
fn eq(&self, other: &CommandInfos) -> bool
impl Eq for CommandInfos
impl StructuralEq for CommandInfos
impl StructuralPartialEq for CommandInfos
Auto Trait Implementations
impl RefUnwindSafe for CommandInfos
impl Send for CommandInfos
impl Sync for CommandInfos
impl Unpin for CommandInfos
impl UnwindSafe for CommandInfos
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more