pub struct VariantConfigStore {
pub global_variants: Arc<HashMap<String, VariantValue>>,
pub config: Arc<VariantConfigStoreConfig>,
/* private fields */
}Fields§
§global_variants: Arc<HashMap<String, VariantValue>>§config: Arc<VariantConfigStoreConfig>Implementations§
Source§impl VariantConfigStore
impl VariantConfigStore
pub fn new( 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>
pub fn new_from_yaml( 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>
pub fn new_from_toml( 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>
pub fn resolve(&self, variants: &HashMap<String, VariantValue>) -> Value
pub fn resolve_typed<T: DeserializeOwned>( &self, variants: &HashMap<String, VariantValue>, ) -> Result<T>
pub fn update_json(&mut self, json: Value) -> Result<()>
pub fn update_json_with_config( &mut self, json: Value, config: &VariantConfigStoreConfig, ) -> Result<()>
pub fn update_global_variants( &mut self, global_variants: HashMap<String, VariantValue>, )
Auto Trait Implementations§
impl Freeze for VariantConfigStore
impl !RefUnwindSafe for VariantConfigStore
impl !Send for VariantConfigStore
impl !Sync for VariantConfigStore
impl Unpin for VariantConfigStore
impl !UnwindSafe for VariantConfigStore
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more