pub struct ParametersData(/* private fields */);Expand description
A map associating each parameter name with its
corresponding ParameterKind.
Implementations§
Source§impl ParametersData
impl ParametersData
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates an empty ParametersData.
Sourcepub fn init(key: String, value: ParameterKind) -> Self
pub fn init(key: String, value: ParameterKind) -> Self
Initializes ParametersData with a specific element.
Sourcepub fn insert(self, key: String, value: ParameterKind) -> Self
pub fn insert(self, key: String, value: ParameterKind) -> Self
Inserts a new element into ParametersData.
Sourcepub fn add(&mut self, key: String, value: ParameterKind)
pub fn add(&mut self, key: String, value: ParameterKind)
Adds a new element into ParametersData.
Unlike Self::insert, this method does not return a modified ParametersData.
Sourcepub fn is_empty(&self) -> bool
pub fn is_empty(&self) -> bool
Checks if ParametersData is empty.
Sourcepub fn len(&self) -> usize
pub fn len(&self) -> usize
Provides the number of elements in ParametersData.
Sourcepub fn iter(&self) -> Iter<'_, String, ParameterKind>
pub fn iter(&self) -> Iter<'_, String, ParameterKind>
Returns an iterator over ParametersData.
Iterates over the elements in the order they were inserted.
Source§impl ParametersData
impl ParametersData
Sourcepub fn get(&self, key: &str) -> Option<&ParameterKind>
pub fn get(&self, key: &str) -> Option<&ParameterKind>
Retrieves a reference to the ParameterKind associated with the
given key.
Trait Implementations§
Source§impl Clone for ParametersData
impl Clone for ParametersData
Source§fn clone(&self) -> ParametersData
fn clone(&self) -> ParametersData
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 ParametersData
impl Debug for ParametersData
Source§impl Default for ParametersData
impl Default for ParametersData
Source§impl<'de> Deserialize<'de> for ParametersData
impl<'de> Deserialize<'de> for ParametersData
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<'b> IntoIterator for &'b ParametersData
impl<'b> IntoIterator for &'b ParametersData
Source§impl PartialEq for ParametersData
impl PartialEq for ParametersData
Source§impl Serialize for ParametersData
impl Serialize for ParametersData
impl StructuralPartialEq for ParametersData
Auto Trait Implementations§
impl Freeze for ParametersData
impl RefUnwindSafe for ParametersData
impl Send for ParametersData
impl Sync for ParametersData
impl Unpin for ParametersData
impl UnwindSafe for ParametersData
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