pub struct Cli {Show 21 fields
pub version: String,
pub verbosity: bool,
pub extensions: Vec<String>,
pub repo_root: String,
pub lines_changed_only: LinesChangedOnly,
pub files_changed_only: bool,
pub ignore: Vec<String>,
pub style: String,
pub ignore_format: Option<Vec<String>>,
pub ignore_tidy: Option<Vec<String>>,
pub tidy_checks: String,
pub database: Option<PathBuf>,
pub extra_arg: Vec<String>,
pub thread_comments: ThreadComments,
pub no_lgtm: bool,
pub step_summary: bool,
pub file_annotations: bool,
pub not_ignored: Option<Vec<String>>,
pub tidy_review: bool,
pub format_review: bool,
pub passive_reviews: bool,
}
Expand description
A structure to contain parsed CLI options.
Fields§
§version: String
§verbosity: bool
§extensions: Vec<String>
§repo_root: String
§lines_changed_only: LinesChangedOnly
§files_changed_only: bool
§ignore: Vec<String>
§style: String
§ignore_format: Option<Vec<String>>
§ignore_tidy: Option<Vec<String>>
§tidy_checks: String
§database: Option<PathBuf>
§extra_arg: Vec<String>
§thread_comments: ThreadComments
§no_lgtm: bool
§step_summary: bool
§file_annotations: bool
§not_ignored: Option<Vec<String>>
§tidy_review: bool
§format_review: bool
§passive_reviews: bool
Trait Implementations§
Source§impl From<&ArgMatches> for Cli
impl From<&ArgMatches> for Cli
Source§fn from(args: &ArgMatches) -> Self
fn from(args: &ArgMatches) -> Self
Construct a Cli
instance from a ArgMatches
instance (after options are parsed from CLI).
Source§impl From<&Cli> for ClangParams
impl From<&Cli> for ClangParams
Auto Trait Implementations§
impl Freeze for Cli
impl RefUnwindSafe for Cli
impl Send for Cli
impl Sync for Cli
impl Unpin for Cli
impl UnwindSafe for Cli
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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