[−][src]Enum germinate::ValueSource
This type represents the sources where a value can be loaded from
Variants
This variant represents a value that it loaded from an environment variable
This variant represents a value that is loaded from AWS System Manager Parameter Store
Implementations
impl ValueSource
[src]
pub fn from<T: AsRef<str>>(key: T) -> Result<Self>
[src]
Creates a new ValueSource
from the given name. The name is the string used in the template
to define which loader to use when loading the value
Examples
// template string: "Hello %env:NAME%!" use germinate::ValueSource; let source = ValueSource::from("env").unwrap(); assert_eq!(ValueSource::Environment, source);
Trait Implementations
impl Debug for ValueSource
[src]
impl PartialEq<ValueSource> for ValueSource
[src]
fn eq(&self, other: &ValueSource) -> bool
[src]
#[must_use]fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralPartialEq for ValueSource
[src]
Auto Trait Implementations
impl RefUnwindSafe for ValueSource
impl Send for ValueSource
impl Sync for ValueSource
impl Unpin for ValueSource
impl UnwindSafe for ValueSource
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
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> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> Sealed<T> for T where
T: ?Sized,
T: ?Sized,
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>,