#[non_exhaustive]pub struct PackageData {
pub name: Option<String>,
pub before: Option<String>,
pub after: Option<String>,
pub pre: Option<String>,
pub post: Option<String>,
}Expand description
Per-source configuration for a single package, including install hooks and name overrides.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: Option<String>Source-specific package name override (e.g. a different crate name in Cargo vs Brew).
before: Option<String>Shell snippet to run before the package manager command.
after: Option<String>Shell snippet to run after the package manager command.
pre: Option<String>Shell snippet to run as a pre-install step (inside the generated script).
post: Option<String>Shell snippet to run as a post-install step (inside the generated script).
Implementations§
Trait Implementations§
Source§impl Clone for PackageData
impl Clone for PackageData
Source§impl Debug for PackageData
impl Debug for PackageData
Source§impl<'de> Deserialize<'de> for PackageData
impl<'de> Deserialize<'de> for PackageData
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
Source§impl PartialEq for PackageData
impl PartialEq for PackageData
Source§impl Serialize for PackageData
impl Serialize for PackageData
impl StructuralPartialEq for PackageData
Auto Trait Implementations§
impl Freeze for PackageData
impl RefUnwindSafe for PackageData
impl Send for PackageData
impl Sync for PackageData
impl Unpin for PackageData
impl UnsafeUnpin for PackageData
impl UnwindSafe for PackageData
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