[][src]Struct cargo_move::config::CargoMoveConfig

pub struct CargoMoveConfig {
    pub hello: ExampleSection,
}

CargoMove Configuration

Fields

hello: ExampleSection

An example configuration section

Trait Implementations

impl Clone for CargoMoveConfig[src]

impl Default for CargoMoveConfig[src]

Default configuration settings.

Note: if your needs are as simple as below, you can use #[derive(Default)] on CargoMoveConfig instead.

impl Debug for CargoMoveConfig[src]

impl Config for CargoMoveConfig[src]

impl Configurable<CargoMoveConfig> for CargoMoveCmd[src]

This trait allows you to define how application configuration is loaded.

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

Location of the configuration file

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

Apply changes to the config after it's been loaded, e.g. overriding values in a config file using command-line options.

This can be safely deleted if you don't want to override config settings from command-line options.

impl Serialize for CargoMoveConfig[src]

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

Auto Trait Implementations

Blanket Implementations

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<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]