Struct variant_config::VariantConfigStore[][src]

pub struct VariantConfigStore {
    pub global_variants: Arc<HashMap<String, VariantValue>>,
    pub config: Arc<VariantConfigStoreConfig>,
    // some fields omitted
}

Fields

global_variants: Arc<HashMap<String, VariantValue>>config: Arc<VariantConfigStoreConfig>

Implementations

impl VariantConfigStore[src]

pub fn new(
    json: Value,
    global_variants: HashMap<String, VariantValue>
) -> Result<Self>
[src]

pub fn new_with_config(
    json: Value,
    global_variants: HashMap<String, VariantValue>,
    config: VariantConfigStoreConfig
) -> Result<Self>
[src]

pub fn new_from_yaml(
    yaml: &str,
    global_variants: HashMap<String, VariantValue>
) -> Result<Self>
[src]

pub fn new_from_yaml_with_config(
    yaml: &str,
    global_variants: HashMap<String, VariantValue>,
    config: VariantConfigStoreConfig
) -> Result<Self>
[src]

pub fn new_from_toml(
    toml: &str,
    global_variants: HashMap<String, VariantValue>
) -> Result<Self>
[src]

pub fn new_from_toml_with_config(
    toml: &str,
    global_variants: HashMap<String, VariantValue>,
    config: VariantConfigStoreConfig
) -> Result<Self>
[src]

pub fn resolve(&self, variants: &HashMap<String, VariantValue>) -> Value[src]

pub fn resolve_typed<T: DeserializeOwned>(
    &self,
    variants: &HashMap<String, VariantValue>
) -> Result<T>
[src]

pub fn update_json(&mut self, json: Value) -> Result<()>[src]

pub fn update_json_with_config(
    &mut self,
    json: Value,
    config: &VariantConfigStoreConfig
) -> Result<()>
[src]

pub fn update_global_variants(
    &mut self,
    global_variants: HashMap<String, VariantValue>
)
[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.