pub struct AppOpenArgs {
pub bundle_id: Option<String>,
pub path: Option<PathBuf>,
pub workspace: Option<PathBuf>,
}Fields§
§bundle_id: Option<String>Bundle identifier to open (default: com.mitchfultz.ralph).
Uses: open -b <bundle_id>.
path: Option<PathBuf>Open the app at a specific .app bundle path (useful for dev builds).
Uses: open <path>.
workspace: Option<PathBuf>Workspace directory to open (defaults to current working directory). Used internally when launching from CLI to pass context to the macOS app.
Trait Implementations§
Source§impl Args for AppOpenArgs
impl Args for AppOpenArgs
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 AppOpenArgs
impl Clone for AppOpenArgs
Source§fn clone(&self) -> AppOpenArgs
fn clone(&self) -> AppOpenArgs
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 AppOpenArgs
impl Debug for AppOpenArgs
Source§impl FromArgMatches for AppOpenArgs
impl FromArgMatches for AppOpenArgs
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 AppOpenArgs
impl RefUnwindSafe for AppOpenArgs
impl Send for AppOpenArgs
impl Sync for AppOpenArgs
impl Unpin for AppOpenArgs
impl UnsafeUnpin for AppOpenArgs
impl UnwindSafe for AppOpenArgs
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