[−][src]Struct configster::OptionProperties
The type for each Option; holds the information for each element of a line in a config file.
Examples
A function argument:
fn assign_properties(st_option_props: &configster::OptionProperties, homedir: &str) {
let mut value = "$HOME/Documents";
value = st_option_props.value.primary.replace("$HOME", &homedir);
}
A return type:
fn parse(
opt_cfg: Option<String>,
homedir: String,
) -> io::Result<Vec<configster::OptionProperties>> {
// ...
Ok(config_vec)
}
Fields
option: String
value: Value
Trait Implementations
impl Debug for OptionProperties
[src]
impl PartialEq<OptionProperties> for OptionProperties
[src]
fn eq(&self, other: &OptionProperties) -> bool
[src]
fn ne(&self, other: &OptionProperties) -> bool
[src]
impl StructuralPartialEq for OptionProperties
[src]
Auto Trait Implementations
impl RefUnwindSafe for OptionProperties
impl Send for OptionProperties
impl Sync for OptionProperties
impl Unpin for OptionProperties
impl UnwindSafe for OptionProperties
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, 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>,