pub struct ParameterSets { /* private fields */ }
Implementations§
Source§impl ParameterSets
impl ParameterSets
pub fn new(sets: Vec<ParameterSet>, version: String) -> ParameterSets
pub fn from_file_path(path: String) -> Result<ParameterSets, String>
pub fn get_parameter_sets(&self) -> Result<&Map<String, Value>, String>
pub fn set_parameter_sets(&mut self, sets: Vec<ParameterSet>)
pub fn get_parameter_set(&self, key: String) -> Result<ParameterSet, String>
pub fn set_parameter_set(&mut self, key: String, values: Map<String, Value>)
Trait Implementations§
Source§impl Clone for ParameterSets
impl Clone for ParameterSets
Source§fn clone(&self) -> ParameterSets
fn clone(&self) -> ParameterSets
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ParameterSets
impl Debug for ParameterSets
Source§impl Default for ParameterSets
impl Default for ParameterSets
Source§fn default() -> ParameterSets
fn default() -> ParameterSets
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ParameterSets
impl<'de> Deserialize<'de> for ParameterSets
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ParameterSets
impl PartialEq for ParameterSets
Source§impl Serialize for ParameterSets
impl Serialize for ParameterSets
impl StructuralPartialEq for ParameterSets
Auto Trait Implementations§
impl Freeze for ParameterSets
impl RefUnwindSafe for ParameterSets
impl Send for ParameterSets
impl Sync for ParameterSets
impl Unpin for ParameterSets
impl UnwindSafe for ParameterSets
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