pub struct Cli {Show 24 fields
pub screenshot: bool,
pub portal: bool,
pub list_windows: bool,
pub list_displays: bool,
pub list_apps: bool,
pub preflight: bool,
pub request_permission: bool,
pub window_id: Option<u32>,
pub app: Option<String>,
pub window_name: Option<String>,
pub active_window: bool,
pub display: bool,
pub display_id: Option<u32>,
pub duration: Option<u64>,
pub audio: AudioMode,
pub path: Option<PathBuf>,
pub metadata_out: Option<PathBuf>,
pub diagnostics_out: Option<PathBuf>,
pub format: Option<ContainerFormat>,
pub image_format: Option<ImageFormat>,
pub dir: Option<PathBuf>,
pub if_changed: bool,
pub if_changed_baseline: Option<PathBuf>,
pub if_changed_threshold: Option<u32>,
}Fields§
§screenshot: boolCapture a single window screenshot and exit.
portal: boolUse the system portal picker (Linux Wayland) instead of X11 selectors.
list_windows: boolPrint selectable windows as TSV and exit.
list_displays: boolPrint selectable displays as TSV and exit.
list_apps: boolPrint selectable apps as TSV and exit.
preflight: boolCheck capture prerequisites (macOS permission or X11/ffmpeg availability) and exit.
request_permission: boolBest-effort permission request (macOS) or prerequisite check (X11), then exit.
window_id: Option<u32>Record a specific window id (from –list-windows).
app: Option<String>Select a window by app/owner name (case-insensitive substring).
window_name: Option<String>Narrow –app selection by window title substring.
active_window: boolRecord the frontmost window on the current Space.
display: boolRecord the primary display.
display_id: Option<u32>Record a specific display id (from –list-displays).
duration: Option<u64>Record for N seconds.
audio: AudioModeControl audio capture.
path: Option<PathBuf>Output file path.
metadata_out: Option<PathBuf>Write recording metadata JSON to this path.
diagnostics_out: Option<PathBuf>Write diagnostics manifest JSON and sidecar artifacts for recording mode.
format: Option<ContainerFormat>Explicit container selection. Overrides extension.
image_format: Option<ImageFormat>Screenshot output image format. Overrides extension.
dir: Option<PathBuf>Output directory for screenshot mode when –path is omitted.
if_changed: boolSkip publishing a new screenshot when the capture hash stays within threshold.
if_changed_baseline: Option<PathBuf>Optional baseline image path for –if-changed comparisons.
if_changed_threshold: Option<u32>Maximum allowed hash-distance bits before capture is considered changed.
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.