[−][src]Struct cargo_move::config::CargoMoveConfig
CargoMove Configuration
Fields
hello: ExampleSection
An example configuration section
Trait Implementations
impl Clone for CargoMoveConfig
[src]
fn clone(&self) -> CargoMoveConfig
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[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]
fn load_toml<T>(toml_string: T) -> Result<Self, Error<FrameworkErrorKind>> where
T: AsRef<str>,
[src]
T: AsRef<str>,
fn load_toml_file<P>(path: &P) -> Result<Self, Error<FrameworkErrorKind>> where
P: AsRef<CanonicalPath>,
[src]
P: AsRef<CanonicalPath>,
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]
&self,
config: CargoMoveConfig
) -> Result<CargoMoveConfig, FrameworkError>
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]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'de> Deserialize<'de> for CargoMoveConfig
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl Send for CargoMoveConfig
impl Sync for CargoMoveConfig
impl Unpin for CargoMoveConfig
impl UnwindSafe for CargoMoveConfig
impl RefUnwindSafe for CargoMoveConfig
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
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>,