#[non_exhaustive]pub struct ConfigPackageSource {
pub name: KnownSources,
pub emoji: String,
pub shell_command: String,
pub install_command: String,
pub check_command: String,
pub prepend_to_package_name: Option<String>,
pub overrides: Option<Vec<PackageNameOverride>>,
}Expand description
Represents a custom package source configuration
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: KnownSources§emoji: String§shell_command: String§install_command: String§check_command: String§prepend_to_package_name: Option<String>§overrides: Option<Vec<PackageNameOverride>>Implementations§
Trait Implementations§
Source§impl Clone for ConfigPackageSource
impl Clone for ConfigPackageSource
Source§impl Debug for ConfigPackageSource
impl Debug for ConfigPackageSource
Source§impl<'de> Deserialize<'de> for ConfigPackageSource
impl<'de> Deserialize<'de> for ConfigPackageSource
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 ConfigPackageSource
impl PartialEq for ConfigPackageSource
Source§impl Serialize for ConfigPackageSource
impl Serialize for ConfigPackageSource
impl StructuralPartialEq for ConfigPackageSource
Auto Trait Implementations§
impl Freeze for ConfigPackageSource
impl RefUnwindSafe for ConfigPackageSource
impl Send for ConfigPackageSource
impl Sync for ConfigPackageSource
impl Unpin for ConfigPackageSource
impl UnsafeUnpin for ConfigPackageSource
impl UnwindSafe for ConfigPackageSource
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