pub enum QueryCommands {
ConnectedFiles {
path: String,
config: Option<String>,
no_ignore: bool,
file: String,
graph: Option<String>,
format: String,
},
ItemInfo {
path: String,
config: Option<String>,
no_ignore: bool,
item_id: String,
graph: Option<String>,
show_code: bool,
format: String,
},
FunctionUsage {
path: String,
config: Option<String>,
no_ignore: bool,
function: String,
direction: String,
graph: Option<String>,
format: String,
},
Cycles {
path: String,
config: Option<String>,
no_ignore: bool,
graph: Option<String>,
format: String,
},
Path {
path: String,
config: Option<String>,
no_ignore: bool,
from: String,
to: String,
graph: Option<String>,
format: String,
},
Hubs {
path: String,
config: Option<String>,
no_ignore: bool,
graph: Option<String>,
metric: String,
top: usize,
format: String,
},
ModuleCentrality {
path: String,
config: Option<String>,
no_ignore: bool,
graph: Option<String>,
metric: String,
top: usize,
format: String,
},
TraitImpls {
path: String,
config: Option<String>,
no_ignore: bool,
trait: String,
graph: Option<String>,
format: String,
},
UnreferencedItems {
path: String,
config: Option<String>,
no_ignore: bool,
include_public: bool,
exclude: Option<String>,
graph: Option<String>,
format: String,
},
}Variants§
ConnectedFiles
List files connected to the given file via relationships
Fields
ItemInfo
Show a single item’s definition and relations by ItemId
Fields
FunctionUsage
List files that call or are called by a given function name
Fields
Cycles
Detect cycles between files
Fields
Path
Compute shortest path between two files
Fields
Hubs
List top-N hub files by degree centrality
Fields
ModuleCentrality
List top-N modules (directories) by degree centrality
Fields
TraitImpls
List types implementing a trait
Fields
UnreferencedItems
List items with no inbound usage edges (potentially dead code)
Fields
Trait Implementations§
Source§impl Debug for QueryCommands
impl Debug for QueryCommands
Source§impl FromArgMatches for QueryCommands
impl FromArgMatches for QueryCommands
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<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§impl Subcommand for QueryCommands
impl Subcommand for QueryCommands
Source§fn augment_subcommands<'b>(__clap_app: Command) -> Command
fn augment_subcommands<'b>(__clap_app: Command) -> Command
Source§fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Test whether
Self can parse a specific subcommandAuto Trait Implementations§
impl Freeze for QueryCommands
impl RefUnwindSafe for QueryCommands
impl Send for QueryCommands
impl Sync for QueryCommands
impl Unpin for QueryCommands
impl UnwindSafe for QueryCommands
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more