pub struct CompletableBuilder { /* private fields */ }Expand description
Builder for creating completable arguments.
Implementations§
Source§impl CompletableBuilder
impl CompletableBuilder
Sourcepub fn description(self, desc: impl Into<String>) -> Self
pub fn description(self, desc: impl Into<String>) -> Self
Set the description.
Sourcepub fn static_completions(self, values: Vec<String>) -> Self
pub fn static_completions(self, values: Vec<String>) -> Self
Add static completions.
Sourcepub fn file_completions(self) -> Self
pub fn file_completions(self) -> Self
Add file path completions.
Sourcepub fn build(self) -> CompletableArgument
pub fn build(self) -> CompletableArgument
Build the completable argument.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CompletableBuilder
impl RefUnwindSafe for CompletableBuilder
impl Send for CompletableBuilder
impl Sync for CompletableBuilder
impl Unpin for CompletableBuilder
impl UnwindSafe for CompletableBuilder
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