[−][src]Struct cargo_rpm::config::CargoConfig
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]
fn default() -> 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]
&self,
config: CargoConfig
) -> Result<CargoConfig, FrameworkError>
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]
T: AsRef<str>,
Load the configuration from the given TOML string
fn load_toml_file<P>(path: &P) -> Result<Self, Error<FrameworkErrorKind>> where
P: AsRef<CanonicalPath>,
[src]
P: AsRef<CanonicalPath>,
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]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl Sync for CargoConfig
impl Send for CargoConfig
impl Unpin for CargoConfig
impl RefUnwindSafe for CargoConfig
impl UnwindSafe for CargoConfig
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> AsAny for T where
T: Any,
[src]
T: Any,
fn as_any(&self) -> &(dyn Any + 'static)
[src]
fn as_mut_any(&mut self) -> &mut (dyn Any + 'static)
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,