pub struct PhpPrefArgs {
pub managed_php: bool,
pub no_managed_php: bool,
pub no_php_downloads: bool,
}Expand description
Shared PHP-source preference flags (uv’s system-Python model adapted
to PHP). Flattened into sync / run; --managed-php and
--no-managed-php are mutually exclusive. With none set, bougie’s
default applies: prefer an installed managed PHP, then a qualifying
system PHP, then download a managed one.
Fields§
§managed_php: boolOnly use a bougie-managed PHP; never a system PHP.
no_managed_php: boolOnly use a system PHP already on this machine; never a managed one.
no_php_downloads: boolNever download a managed PHP — use an installed managed PHP or a system one. Errors if neither is present.
Trait Implementations§
Source§impl Args for PhpPrefArgs
impl Args for PhpPrefArgs
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 PhpPrefArgs
impl Clone for PhpPrefArgs
Source§fn clone(&self) -> PhpPrefArgs
fn clone(&self) -> PhpPrefArgs
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PhpPrefArgs
Source§impl Debug for PhpPrefArgs
impl Debug for PhpPrefArgs
Source§impl Default for PhpPrefArgs
impl Default for PhpPrefArgs
Source§fn default() -> PhpPrefArgs
fn default() -> PhpPrefArgs
Returns the “default value” for a type. Read more
Source§impl FromArgMatches for PhpPrefArgs
impl FromArgMatches for PhpPrefArgs
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 PhpPrefArgs
impl RefUnwindSafe for PhpPrefArgs
impl Send for PhpPrefArgs
impl Sync for PhpPrefArgs
impl Unpin for PhpPrefArgs
impl UnsafeUnpin for PhpPrefArgs
impl UnwindSafe for PhpPrefArgs
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