pub struct ObserveScreenshotArgs {
pub window_id: Option<u32>,
pub active_window: bool,
pub app: Option<String>,
pub window_name: Option<String>,
pub path: Option<PathBuf>,
pub image_format: Option<ImageFormat>,
pub ax_selector: AxSelectorArgs,
pub selector_padding: i32,
pub if_changed: bool,
pub if_changed_baseline: Option<PathBuf>,
pub if_changed_threshold: Option<u32>,
}Fields§
§window_id: Option<u32>Select by window id.
active_window: boolSelect frontmost active window.
app: Option<String>Select by app name.
window_name: Option<String>Narrow app selection by window title substring.
path: Option<PathBuf>Output path.
image_format: Option<ImageFormat>Output image format.
ax_selector: AxSelectorArgs§selector_padding: i32Expand selector frame by N pixels in each direction.
if_changed: boolSkip writing a new screenshot when the capture hash stays within threshold.
if_changed_baseline: Option<PathBuf>Optional baseline image path used for hash comparison.
if_changed_threshold: Option<u32>Maximum allowed hash-distance bits before capture is considered changed.
Trait Implementations§
Source§impl Args for ObserveScreenshotArgs
impl Args for ObserveScreenshotArgs
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
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl Clone for ObserveScreenshotArgs
impl Clone for ObserveScreenshotArgs
Source§fn clone(&self) -> ObserveScreenshotArgs
fn clone(&self) -> ObserveScreenshotArgs
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ObserveScreenshotArgs
impl Debug for ObserveScreenshotArgs
Source§impl FromArgMatches for ObserveScreenshotArgs
impl FromArgMatches for ObserveScreenshotArgs
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(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Auto Trait Implementations§
impl Freeze for ObserveScreenshotArgs
impl RefUnwindSafe for ObserveScreenshotArgs
impl Send for ObserveScreenshotArgs
impl Sync for ObserveScreenshotArgs
impl Unpin for ObserveScreenshotArgs
impl UnsafeUnpin for ObserveScreenshotArgs
impl UnwindSafe for ObserveScreenshotArgs
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