Struct miau::configuration::ConfigurationInfo [−][src]
Holds information about configuration.
Each configuration source and format can populate it with arbitrary data. For instance, file source may store path to a file and its format.
Implementations
impl ConfigurationInfo
[src]
pub fn new<T: Into<String>>(source: T, format: T) -> Self
[src]
Creates new instance of ConfigurationInfo
.
pub fn format(&self) -> &str
[src]
Returns information about configuration format.
Usually it will be data format information like json
, yaml
.
However, arbitrary data can be stored as a configuration format,
thus no assumption about cotents of format string should be made.
pub fn source(&self) -> &str
[src]
Returns information about configuration source.
Depending on a source this information can contain file path, url or simple information like 'environment'.
Trait Implementations
impl Clone for ConfigurationInfo
[src]
fn clone(&self) -> ConfigurationInfo
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ConfigurationInfo
[src]
impl Default for ConfigurationInfo
[src]
impl Display for ConfigurationInfo
[src]
impl Eq for ConfigurationInfo
[src]
impl PartialEq<ConfigurationInfo> for ConfigurationInfo
[src]
fn eq(&self, other: &ConfigurationInfo) -> bool
[src]
fn ne(&self, other: &ConfigurationInfo) -> bool
[src]
impl StructuralEq for ConfigurationInfo
[src]
impl StructuralPartialEq for ConfigurationInfo
[src]
Auto Trait Implementations
impl RefUnwindSafe for ConfigurationInfo
[src]
impl Send for ConfigurationInfo
[src]
impl Sync for ConfigurationInfo
[src]
impl Unpin for ConfigurationInfo
[src]
impl UnwindSafe for ConfigurationInfo
[src]
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,
pub 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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?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.
pub 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>,