pub struct InstallOptions {
pub needed: bool,
pub noconfirm: bool,
pub aur_only: bool,
}Expand description
What: Options controlling install command flag construction.
Inputs:
- Passed to
build_pacman_install(),build_aur_install(), and batch builders.
Output:
- Determines which flags (
--needed,--noconfirm,--aur) appear in commands.
Details:
needed: Pass--neededso up-to-date packages are skipped. Disable for explicit reinstalls (mirrors Pacsea’s reinstall path).noconfirm: Pass--noconfirmfor non-interactive operation.aur_only: Pass--aurto AUR helpers so they do not prefer a sync database (e.g., Chaotic-AUR) when the same name exists on the AUR. Ignored by pacman builders.
Fields§
§needed: boolPass --needed (skip reinstalling up-to-date packages).
noconfirm: boolPass --noconfirm (non-interactive).
aur_only: boolPass --aur to AUR helpers (restrict resolution to the AUR).
Trait Implementations§
Source§impl Clone for InstallOptions
impl Clone for InstallOptions
Source§fn clone(&self) -> InstallOptions
fn clone(&self) -> InstallOptions
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 InstallOptions
Source§impl Debug for InstallOptions
impl Debug for InstallOptions
Source§impl Default for InstallOptions
impl Default for InstallOptions
Source§impl<'de> Deserialize<'de> for InstallOptions
impl<'de> Deserialize<'de> for InstallOptions
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for InstallOptions
Source§impl PartialEq for InstallOptions
impl PartialEq for InstallOptions
Source§impl Serialize for InstallOptions
impl Serialize for InstallOptions
impl StructuralPartialEq for InstallOptions
Auto Trait Implementations§
impl Freeze for InstallOptions
impl RefUnwindSafe for InstallOptions
impl Send for InstallOptions
impl Sync for InstallOptions
impl Unpin for InstallOptions
impl UnsafeUnpin for InstallOptions
impl UnwindSafe for InstallOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.