pub enum PublicCommand {
Summary {
index_root: PathBuf,
host: String,
owner: String,
repo: String,
base_path: String,
stale_after_hours: Option<i64>,
},
Profile {
index_root: PathBuf,
host: String,
owner: String,
repo: String,
base_path: String,
stale_after_hours: Option<i64>,
},
BatchProfiles {
index_root: PathBuf,
repos: Vec<String>,
base_path: String,
stale_after_hours: Option<i64>,
},
BatchQuery {
index_root: PathBuf,
repos: Vec<String>,
paths: Vec<String>,
base_path: String,
stale_after_hours: Option<i64>,
},
Compare {
index_root: PathBuf,
repos: Vec<String>,
base_path: String,
stale_after_hours: Option<i64>,
},
Relations {
index_root: PathBuf,
host: String,
owner: String,
repo: String,
base_path: String,
stale_after_hours: Option<i64>,
},
Search {Show 14 fields
index_root: PathBuf,
q: Option<String>,
languages: Vec<String>,
topics: Vec<String>,
statuses: Vec<String>,
confidences: Vec<String>,
require_build: bool,
require_test: bool,
require_docs: bool,
require_security_contact: bool,
require_license: bool,
limit: Option<usize>,
base_path: String,
stale_after_hours: Option<i64>,
},
Trust {
index_root: PathBuf,
host: String,
owner: String,
repo: String,
base_path: String,
stale_after_hours: Option<i64>,
},
Query {
index_root: PathBuf,
host: String,
owner: String,
repo: String,
path: String,
base_path: String,
stale_after_hours: Option<i64>,
},
Export {
index_root: PathBuf,
out_dir: PathBuf,
base_path: String,
stale_after_hours: Option<i64>,
generated_at: Option<String>,
stale_after: Option<String>,
pagedigest_previous: Option<PathBuf>,
},
}Variants§
Summary
Render one public repository summary response as JSON.
Fields
Profile
Render one compact public research profile response as JSON.
Fields
BatchProfiles
Render compact public research profiles for multiple repositories.
Fields
BatchQuery
Render public query responses for multiple repositories and dot paths.
Fields
Compare
Compare compact public research profiles for multiple repositories.
Fields
Relations
Traverse public repository references declared in the selected profile.
Fields
Search
Search compact public research profiles by text and structured filters.
Fields
Trust
Render one public trust response as JSON.
Fields
Query
Render one public query response as JSON.
Fields
Export
Export the static-first public JSON tree for repository summary, profile, and trust.
Fields
Trait Implementations§
Source§impl FromArgMatches for PublicCommand
impl FromArgMatches for PublicCommand
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 PublicCommand
impl Subcommand for PublicCommand
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 PublicCommand
impl RefUnwindSafe for PublicCommand
impl Send for PublicCommand
impl Sync for PublicCommand
impl Unpin for PublicCommand
impl UnsafeUnpin for PublicCommand
impl UnwindSafe for PublicCommand
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