pub struct WindowActivateArgs {
pub window_id: Option<u32>,
pub active_window: bool,
pub app: Option<String>,
pub window_name: Option<String>,
pub bundle_id: Option<String>,
pub wait_ms: Option<u64>,
pub reopen_on_fail: bool,
}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.
bundle_id: Option<String>Select by bundle id.
wait_ms: Option<u64>Wait up to this many milliseconds for active confirmation.
reopen_on_fail: boolIf activation/confirmation fails, quit and relaunch the target app once then retry.
Trait Implementations§
Source§impl Args for WindowActivateArgs
impl Args for WindowActivateArgs
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 WindowActivateArgs
impl Clone for WindowActivateArgs
Source§fn clone(&self) -> WindowActivateArgs
fn clone(&self) -> WindowActivateArgs
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 WindowActivateArgs
impl Debug for WindowActivateArgs
Source§impl FromArgMatches for WindowActivateArgs
impl FromArgMatches for WindowActivateArgs
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 WindowActivateArgs
impl RefUnwindSafe for WindowActivateArgs
impl Send for WindowActivateArgs
impl Sync for WindowActivateArgs
impl Unpin for WindowActivateArgs
impl UnsafeUnpin for WindowActivateArgs
impl UnwindSafe for WindowActivateArgs
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