#[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§
Source§impl Clone for CommandInfos
impl Clone for CommandInfos
Source§fn clone(&self) -> CommandInfos
fn clone(&self) -> CommandInfos
Returns a copy 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
Source§type Error = Infallible
type Error = Infallible
The error type in the returned
Result.Source§fn into_result(self) -> Result<T, <T as IntoResult<T>>::Error>
fn into_result(self) -> Result<T, <T as IntoResult<T>>::Error>
Converts the value into a
Result.