pub enum ConfigSourcePriority {
File = 0,
Remote = 1,
Env = 2,
}Expand description
Configuration source priority: a higher value means higher priority, and higher priority overrides lower priority.
Variants§
File = 0
File configuration (lowest priority)
Remote = 1
Remote configuration center
Env = 2
Environment variables (highest priority)
Trait Implementations§
Source§impl Clone for ConfigSourcePriority
impl Clone for ConfigSourcePriority
Source§fn clone(&self) -> ConfigSourcePriority
fn clone(&self) -> ConfigSourcePriority
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ConfigSourcePriority
Source§impl Debug for ConfigSourcePriority
impl Debug for ConfigSourcePriority
Source§impl<'de> Deserialize<'de> for ConfigSourcePriority
impl<'de> Deserialize<'de> for ConfigSourcePriority
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ConfigSourcePriority
Source§impl Ord for ConfigSourcePriority
impl Ord for ConfigSourcePriority
Source§fn cmp(&self, other: &ConfigSourcePriority) -> Ordering
fn cmp(&self, other: &ConfigSourcePriority) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for ConfigSourcePriority
impl PartialEq for ConfigSourcePriority
Source§impl PartialOrd for ConfigSourcePriority
impl PartialOrd for ConfigSourcePriority
Source§impl Serialize for ConfigSourcePriority
impl Serialize for ConfigSourcePriority
impl StructuralPartialEq for ConfigSourcePriority
Auto Trait Implementations§
impl Freeze for ConfigSourcePriority
impl RefUnwindSafe for ConfigSourcePriority
impl Send for ConfigSourcePriority
impl Sync for ConfigSourcePriority
impl Unpin for ConfigSourcePriority
impl UnsafeUnpin for ConfigSourcePriority
impl UnwindSafe for ConfigSourcePriority
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