pub(crate) enum Command {
Watch(WatchOpts),
List(ListOpts),
Debug,
Index(IndexOpts),
Search(SearchOpts),
Feed(FeedCommands),
Job(JobOpts),
Server(ServerOpts),
Nuke,
Run,
}
Variants
Watch(WatchOpts)
Watch and show print changes from the CouchDB feed
List(ListOpts)
Print all docs from CouchDB
Debug
Index(IndexOpts)
Run the indexing pipeline
Search(SearchOpts)
Search for records
Feed(FeedCommands)
Fetch a RSS feed
Job(JobOpts)
Job commands
Server(ServerOpts)
Run the HTTP API server
Nuke
Delete all databases and indexes (dangerous!)
Run
Run all services
Trait Implementations
sourceimpl FromArgMatches for Command
impl FromArgMatches for Command
sourcefn from_arg_matches(arg_matches: &ArgMatches) -> Option<Self>
fn from_arg_matches(arg_matches: &ArgMatches) -> Option<Self>
sourcefn update_from_arg_matches<'b>(&mut self, arg_matches: &ArgMatches)
fn update_from_arg_matches<'b>(&mut self, arg_matches: &ArgMatches)
Assign values from
ArgMatches
to self
.sourceimpl Parser for Command
impl Parser for Command
sourcefn parse_from<I, T>(itr: I) -> Selfwhere
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn parse_from<I, T>(itr: I) -> Selfwhere
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
Parse from iterator, exit on error
sourcefn try_parse_from<I, T>(itr: I) -> Result<Self, Error>where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
Parse from iterator, return Err on error.
sourcefn update_from<I, T>(&mut self, itr: I)where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn update_from<I, T>(&mut self, itr: I)where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
Update from iterator, exit on error
sourcefn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
Update from iterator, return Err on error.
sourceimpl Subcommand for Command
impl Subcommand for Command
sourcefn augment_subcommands<'b>(app: App<'b>) -> App<'b>
fn augment_subcommands<'b>(app: App<'b>) -> App<'b>
sourcefn augment_subcommands_for_update<'b>(app: App<'b>) -> App<'b>
fn augment_subcommands_for_update<'b>(app: App<'b>) -> App<'b>
sourcefn has_subcommand(name: &str) -> bool
fn has_subcommand(name: &str) -> bool
Test whether
Self
can parse a specific subcommandAuto Trait Implementations
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnwindSafe for Command
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
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<T> IntoCollection<T> for T
impl<T> IntoCollection<T> for T
fn into_collection<A>(self) -> SmallVec<A>where
A: Array<Item = T>,
fn into_collection<A>(self) -> SmallVec<A>where
A: Array<Item = T>,
Converts
self
into a collection.fn mapped<U, F, A>(self, f: F) -> SmallVec<A>where
F: FnMut(T) -> U,
A: Array<Item = U>,
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be
Self