#[non_exhaustive]pub struct PacmanConfig {
pub files: Option<HashMap<String, String>>,
pub depends: Option<Dependencies>,
pub provides: Option<Vec<String>>,
pub conflicts: Option<Vec<String>>,
pub replaces: Option<Vec<String>>,
pub source: Option<Vec<String>>,
}Expand description
The Linux pacman configuration.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.files: Option<HashMap<String, String>>List of custom files to add to the pacman package. Maps a dir/file to a dir/file inside the pacman package.
depends: Option<Dependencies>List of softwares that must be installed for the app to build and run.
provides: Option<Vec<String>>Additional packages that are provided by this app.
conflicts: Option<Vec<String>>Packages that conflict or cause problems with the app. All these packages and packages providing this item will need to be removed
replaces: Option<Vec<String>>Only use if this app replaces some obsolete packages. For example, if you rename any package.
source: Option<Vec<String>>Source of the package to be stored at PKGBUILD. PKGBUILD is a bash script, so version can be referred as ${pkgver}
Implementations§
Source§impl PacmanConfig
impl PacmanConfig
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates a new PacmanConfig.
Sourcepub fn files<I, S, T>(self, files: I) -> Self
pub fn files<I, S, T>(self, files: I) -> Self
Set the list of custom files to add to the pacman package. Maps a dir/file to a dir/file inside the pacman package.
Sourcepub fn depends<I, S>(self, depends: I) -> Self
pub fn depends<I, S>(self, depends: I) -> Self
Set the list of pacman dependencies directly using an iterator of strings.
Sourcepub fn depends_path<P>(self, path: P) -> Self
pub fn depends_path<P>(self, path: P) -> Self
Set the list of pacman dependencies indirectly via a path to a file, which must contain one dependency (a package name) per line.
Sourcepub fn provides<I, S>(self, provides: I) -> Self
pub fn provides<I, S>(self, provides: I) -> Self
Set the list of additional packages that are provided by this app.
Sourcepub fn conflicts<I, S>(self, conflicts: I) -> Self
pub fn conflicts<I, S>(self, conflicts: I) -> Self
Set the list of packages that conflict with the app.
Sourcepub fn replaces<I, S>(self, replaces: I) -> Self
pub fn replaces<I, S>(self, replaces: I) -> Self
Set the list of obsolete packages that are replaced by this package.
Trait Implementations§
Source§impl Clone for PacmanConfig
impl Clone for PacmanConfig
Source§fn clone(&self) -> PacmanConfig
fn clone(&self) -> PacmanConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PacmanConfig
impl Debug for PacmanConfig
Source§impl Default for PacmanConfig
impl Default for PacmanConfig
Source§fn default() -> PacmanConfig
fn default() -> PacmanConfig
Source§impl<'de> Deserialize<'de> for PacmanConfig
impl<'de> Deserialize<'de> for PacmanConfig
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>,
Auto Trait Implementations§
impl Freeze for PacmanConfig
impl RefUnwindSafe for PacmanConfig
impl Send for PacmanConfig
impl Sync for PacmanConfig
impl Unpin for PacmanConfig
impl UnsafeUnpin for PacmanConfig
impl UnwindSafe for PacmanConfig
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
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more