[][src]Struct cargo_rpm::config::CargoConfig

pub struct CargoConfig { /* fields omitted */ }

The parts of Cargo.toml that cargo rpm cares about

Methods

impl CargoConfig[src]

pub fn package(&self) -> &PackageConfig[src]

The [package] section of Cargo.toml

Trait Implementations

impl Default for CargoConfig[src]

impl Debug for CargoConfig[src]

impl Configurable<CargoConfig> for CargoRpmCmd[src]

fn config_path(&self) -> Option<PathBuf>[src]

Location of Cargo.toml

fn process_config(
    &self,
    config: CargoConfig
) -> Result<CargoConfig, FrameworkError>
[src]

Override Config.toml config values using command-line arguments

impl Config for CargoConfig[src]

fn load_toml<T>(toml_string: T) -> Result<Self, Error<FrameworkErrorKind>> where
    T: AsRef<str>, 
[src]

Load the configuration from the given TOML string

fn load_toml_file<P>(path: &P) -> Result<Self, Error<FrameworkErrorKind>> where
    P: AsRef<CanonicalPath>, 
[src]

Load the global configuration from the TOML file at the given path. If an error occurs reading or parsing the file, print it out and exit. Read more

impl<'de> Deserialize<'de> for CargoConfig[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> AsAny for T where
    T: Any
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]