pub enum XvcConfigOptionSource {
Default,
System,
Global,
Project,
Local,
CommandLine,
Environment,
Runtime,
}
Expand description
Define the source where an option is obtained
Variants§
Default
Default value defined in source code
System
System-wide configuration value from SYSTEM_CONFIG_DIRS
Global
User’s configuration value from USER_CONFIG_DIRS
Project
Project specific configuration that can be shared
Local
Project specific configuration that’s not meant to be shared (personal/local)
CommandLine
Options obtained from the command line
Environment
Options from environment variables
Runtime
Options set while running the software, automatically.
Trait Implementations§
Source§impl Clone for XvcConfigOptionSource
impl Clone for XvcConfigOptionSource
Source§fn clone(&self) -> XvcConfigOptionSource
fn clone(&self) -> XvcConfigOptionSource
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for XvcConfigOptionSource
impl Debug for XvcConfigOptionSource
Source§impl<'de> Deserialize<'de> for XvcConfigOptionSource
impl<'de> Deserialize<'de> for XvcConfigOptionSource
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<XvcConfigOptionSource, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<XvcConfigOptionSource, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for XvcConfigOptionSource
impl Display for XvcConfigOptionSource
Source§impl<'_derivative_strum> From<&'_derivative_strum XvcConfigOptionSource> for &'static str
impl<'_derivative_strum> From<&'_derivative_strum XvcConfigOptionSource> for &'static str
Source§fn from(x: &'_derivative_strum XvcConfigOptionSource) -> &'static str
fn from(x: &'_derivative_strum XvcConfigOptionSource) -> &'static str
Converts to this type from the input type.
Source§impl From<XvcConfigOptionSource> for &'static str
impl From<XvcConfigOptionSource> for &'static str
Source§fn from(x: XvcConfigOptionSource) -> &'static str
fn from(x: XvcConfigOptionSource) -> &'static str
Converts to this type from the input type.
Source§impl FromStr for XvcConfigOptionSource
impl FromStr for XvcConfigOptionSource
Source§type Err = ParseError
type Err = ParseError
The associated error which can be returned from parsing.
Source§fn from_str(
s: &str,
) -> Result<XvcConfigOptionSource, <XvcConfigOptionSource as FromStr>::Err>
fn from_str( s: &str, ) -> Result<XvcConfigOptionSource, <XvcConfigOptionSource as FromStr>::Err>
Parses a string
s
to return a value of this type. Read moreSource§impl Serialize for XvcConfigOptionSource
impl Serialize for XvcConfigOptionSource
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Source§impl TryFrom<&str> for XvcConfigOptionSource
impl TryFrom<&str> for XvcConfigOptionSource
Source§type Error = ParseError
type Error = ParseError
The type returned in the event of a conversion error.
Source§fn try_from(
s: &str,
) -> Result<XvcConfigOptionSource, <XvcConfigOptionSource as TryFrom<&str>>::Error>
fn try_from( s: &str, ) -> Result<XvcConfigOptionSource, <XvcConfigOptionSource as TryFrom<&str>>::Error>
Performs the conversion.
impl Copy for XvcConfigOptionSource
Auto Trait Implementations§
impl Freeze for XvcConfigOptionSource
impl RefUnwindSafe for XvcConfigOptionSource
impl Send for XvcConfigOptionSource
impl Sync for XvcConfigOptionSource
impl Unpin for XvcConfigOptionSource
impl UnwindSafe for XvcConfigOptionSource
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more