Struct variant_config::VariantConfigStore [−][src]
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]
json: Value,
global_variants: HashMap<String, VariantValue>
) -> Result<Self>
pub fn new_with_config(
json: Value,
global_variants: HashMap<String, VariantValue>,
config: VariantConfigStoreConfig
) -> Result<Self>[src]
json: Value,
global_variants: HashMap<String, VariantValue>,
config: VariantConfigStoreConfig
) -> Result<Self>
pub fn new_from_yaml(
yaml: &str,
global_variants: HashMap<String, VariantValue>
) -> Result<Self>[src]
yaml: &str,
global_variants: HashMap<String, VariantValue>
) -> Result<Self>
pub fn new_from_yaml_with_config(
yaml: &str,
global_variants: HashMap<String, VariantValue>,
config: VariantConfigStoreConfig
) -> Result<Self>[src]
yaml: &str,
global_variants: HashMap<String, VariantValue>,
config: VariantConfigStoreConfig
) -> Result<Self>
pub fn new_from_toml(
toml: &str,
global_variants: HashMap<String, VariantValue>
) -> Result<Self>[src]
toml: &str,
global_variants: HashMap<String, VariantValue>
) -> Result<Self>
pub fn new_from_toml_with_config(
toml: &str,
global_variants: HashMap<String, VariantValue>,
config: VariantConfigStoreConfig
) -> Result<Self>[src]
toml: &str,
global_variants: HashMap<String, VariantValue>,
config: VariantConfigStoreConfig
) -> Result<Self>
pub fn resolve(&self, variants: &HashMap<String, VariantValue>) -> Value[src]
pub fn resolve_typed<T: DeserializeOwned>(
&self,
variants: &HashMap<String, VariantValue>
) -> Result<T>[src]
&self,
variants: &HashMap<String, VariantValue>
) -> Result<T>
pub fn update_json(&mut self, json: Value) -> Result<()>[src]
pub fn update_json_with_config(
&mut self,
json: Value,
config: &VariantConfigStoreConfig
) -> Result<()>[src]
&mut self,
json: Value,
config: &VariantConfigStoreConfig
) -> Result<()>
pub fn update_global_variants(
&mut self,
global_variants: HashMap<String, VariantValue>
)[src]
&mut self,
global_variants: HashMap<String, VariantValue>
)
Auto Trait Implementations
impl !RefUnwindSafe for VariantConfigStore
impl !Send for VariantConfigStore
impl !Sync for VariantConfigStore
impl Unpin for VariantConfigStore
impl !UnwindSafe for VariantConfigStore
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, 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>,