pub struct CompletionQueryArgs {
pub surface: CompletionSurface,
pub cursor: Option<usize>,
pub format: OutputFormat,
pub words: Vec<String>,
}Expand description
majordomus completion query.
Fields§
§surface: CompletionSurfaceWhich surface the words are spelled for
cursor: Option<usize>The index of the word the cursor is in; the default is a new word after the last
format: OutputFormatOutput shape
words: Vec<String>The words of the command line, the program’s own name first
Trait Implementations§
Source§impl Args for CompletionQueryArgs
impl Args for CompletionQueryArgs
Source§fn group_id() -> Option<Id>
fn group_id() -> Option<Id>
Report the [
ArgGroup::id][crate::ArgGroup::id] for this set of argumentsSource§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Append to [
Command] so it can instantiate self via
[FromArgMatches::update_from_arg_matches_mut] Read moreSource§impl Debug for CompletionQueryArgs
impl Debug for CompletionQueryArgs
Source§impl FromArgMatches for CompletionQueryArgs
impl FromArgMatches for CompletionQueryArgs
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Auto Trait Implementations§
impl Freeze for CompletionQueryArgs
impl RefUnwindSafe for CompletionQueryArgs
impl Send for CompletionQueryArgs
impl Sync for CompletionQueryArgs
impl Unpin for CompletionQueryArgs
impl UnsafeUnpin for CompletionQueryArgs
impl UnwindSafe for CompletionQueryArgs
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