pub struct RpmConfig {Show 14 fields
pub depends: Option<Vec<String>>,
pub recommends: Option<Vec<String>>,
pub provides: Option<Vec<String>>,
pub conflicts: Option<Vec<String>>,
pub obsoletes: Option<Vec<String>>,
pub release: String,
pub epoch: u32,
pub files: HashMap<PathBuf, PathBuf>,
pub desktop_template: Option<PathBuf>,
pub pre_install_script: Option<PathBuf>,
pub post_install_script: Option<PathBuf>,
pub pre_remove_script: Option<PathBuf>,
pub post_remove_script: Option<PathBuf>,
pub compression: Option<RpmCompression>,
}
Expand description
Configuration for RPM bundles.
Fields§
§depends: Option<Vec<String>>
The list of RPM dependencies your application relies on.
recommends: Option<Vec<String>>
The list of RPM dependencies your application recommends.
provides: Option<Vec<String>>
The list of RPM dependencies your application provides.
conflicts: Option<Vec<String>>
The list of RPM dependencies your application conflicts with. They must not be present in order for the package to be installed.
obsoletes: Option<Vec<String>>
The list of RPM dependencies your application supersedes - if this package is installed, packages listed as “obsoletes” will be automatically removed (if they are present).
release: String
The RPM release tag.
epoch: u32
The RPM epoch.
files: HashMap<PathBuf, PathBuf>
The files to include on the package.
desktop_template: Option<PathBuf>
Path to a custom desktop file Handlebars template.
Available variables: categories
, comment
(optional), exec
, icon
and name
.
pre_install_script: Option<PathBuf>
Path to script that will be executed before the package is unpacked. See http://ftp.rpm.org/max-rpm/s1-rpm-inside-scripts.html
post_install_script: Option<PathBuf>
Path to script that will be executed after the package is unpacked. See http://ftp.rpm.org/max-rpm/s1-rpm-inside-scripts.html
pre_remove_script: Option<PathBuf>
Path to script that will be executed before the package is removed. See http://ftp.rpm.org/max-rpm/s1-rpm-inside-scripts.html
post_remove_script: Option<PathBuf>
Path to script that will be executed after the package is removed. See http://ftp.rpm.org/max-rpm/s1-rpm-inside-scripts.html
compression: Option<RpmCompression>
Compression algorithm and level. Defaults to Gzip
with level 6.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RpmConfig
impl<'de> Deserialize<'de> for RpmConfig
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>,
impl Eq for RpmConfig
impl StructuralPartialEq for RpmConfig
Auto Trait Implementations§
impl Freeze for RpmConfig
impl RefUnwindSafe for RpmConfig
impl Send for RpmConfig
impl Sync for RpmConfig
impl Unpin for RpmConfig
impl UnwindSafe for RpmConfig
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,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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
key
and return true
if they are equal.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
key
and return true
if they are equal.