pub enum ConfigSource<P, S> {
File(P),
Env {
prefix: S,
},
FileWithEnv {
path: P,
prefix: S,
},
}Variants§
Trait Implementations§
Source§impl<P: Clone, S: Clone> Clone for ConfigSource<P, S>
impl<P: Clone, S: Clone> Clone for ConfigSource<P, S>
Source§fn clone(&self) -> ConfigSource<P, S>
fn clone(&self) -> ConfigSource<P, S>
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 moreimpl<P: Eq, S: Eq> Eq for ConfigSource<P, S>
impl<P, S> StructuralPartialEq for ConfigSource<P, S>
Auto Trait Implementations§
impl<P, S> Freeze for ConfigSource<P, S>
impl<P, S> RefUnwindSafe for ConfigSource<P, S>where
P: RefUnwindSafe,
S: RefUnwindSafe,
impl<P, S> Send for ConfigSource<P, S>
impl<P, S> Sync for ConfigSource<P, S>
impl<P, S> Unpin for ConfigSource<P, S>
impl<P, S> UnsafeUnpin for ConfigSource<P, S>where
P: UnsafeUnpin,
S: UnsafeUnpin,
impl<P, S> UnwindSafe for ConfigSource<P, S>where
P: UnwindSafe,
S: UnwindSafe,
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