pub struct Cli {Show 19 fields
pub baseline: PathBuf,
pub candidate: Option<PathBuf>,
pub crop: bool,
pub x: Option<u32>,
pub y: Option<u32>,
pub crop_width: Option<u32>,
pub crop_height: Option<u32>,
pub format: OutputFormat,
pub output: Option<PathBuf>,
pub threshold: f64,
pub detect_antialias: bool,
pub min_region_size: u32,
pub connectivity: u8,
pub denoise: u32,
pub dilate: u32,
pub merge_distance: u32,
pub verbose: bool,
pub pretty: bool,
pub quiet: bool,
}Fields§
§baseline: PathBufPath to the baseline (expected) image
candidate: Option<PathBuf>Path to the candidate (actual) image (required for diff, unused in crop mode)
crop: boolCrop mode: extract a region from the baseline image instead of diffing
x: Option<u32>X coordinate of crop region (screenshot pixels, requires –crop)
y: Option<u32>Y coordinate of crop region (screenshot pixels, requires –crop)
crop_width: Option<u32>Width of crop region (screenshot pixels, requires –crop)
crop_height: Option<u32>Height of crop region (screenshot pixels, requires –crop)
format: OutputFormatOutput format (written to stdout)
output: Option<PathBuf>Path to write visual diff image (works alongside any output format)
threshold: f64Color difference threshold (0.0 = exact match, 1.0 = everything matches)
detect_antialias: boolEnable anti-aliasing detection (reduces false positives at edges)
min_region_size: u32Minimum region size in pixels (regions smaller than this are filtered out)
connectivity: u8Connectivity for region clustering: 4 (cross) or 8 (including diagonals)
denoise: u32Remove noise clusters smaller than this many pixels before dilation (0 = disabled)
dilate: u32Dilation radius in pixels (expands diff mask to merge nearby changes, 0 = disabled)
merge_distance: u32Max gap in pixels between regions to merge them (0 = disabled)
verbose: boolInclude all diagnostic fields in JSON output (dimensions, pixel counts, deltas)
pretty: boolPretty-print JSON output (default is compact single-line)
quiet: boolSuppress stdout output
Trait Implementations§
Source§impl Args for Cli
impl Args for Cli
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl CommandFactory for Cli
impl CommandFactory for Cli
Source§impl FromArgMatches for Cli
impl FromArgMatches for Cli
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>
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§impl Parser for Cli
impl Parser for Cli
Source§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
Source§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
Auto Trait Implementations§
impl Freeze for Cli
impl RefUnwindSafe for Cli
impl Send for Cli
impl Sync for Cli
impl Unpin for Cli
impl UnsafeUnpin 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
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>
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>
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