pub struct DynamicMap { /* private fields */ }Expand description
(dynamic_map feature) Accepts a map with arbitrary keys and uniform values.
Optional entry-count bounds and an optional validator applied to every value. Coercion: an empty list becomes an empty map (the list counterpart of an empty collection). A non-empty list or any other type is rejected.
Implementations§
Trait Implementations§
Source§impl Default for DynamicMap
impl Default for DynamicMap
Source§fn default() -> DynamicMap
fn default() -> DynamicMap
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for DynamicMap
impl !Send for DynamicMap
impl !Sync for DynamicMap
impl !UnwindSafe for DynamicMap
impl Freeze for DynamicMap
impl Unpin for DynamicMap
impl UnsafeUnpin for DynamicMap
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
Source§impl<T> WithMeta for Twhere
T: Validator,
impl<T> WithMeta for Twhere
T: Validator,
Source§fn description(&self) -> Option<&str>
fn description(&self) -> Option<&str>
The description, if any.
Source§fn examples(&self) -> &[(Value, Option<String>)]
fn examples(&self) -> &[(Value, Option<String>)]
The example values (each with an optional note).
Source§fn default_value(&self) -> Option<&Value>
fn default_value(&self) -> Option<&Value>
The default value, if any.
Source§fn with_name(self, name: impl Into<String>) -> Self
fn with_name(self, name: impl Into<String>) -> Self
Set the human-readable name (surfaced in error messages).
Source§fn with_description(self, text: impl Into<String>) -> Self
fn with_description(self, text: impl Into<String>) -> Self
Attach a human-readable description.
Source§fn with_example(self, value: impl Into<Value>) -> Self
fn with_example(self, value: impl Into<Value>) -> Self
Add an example value.
Source§fn with_example_noted(
self,
value: impl Into<Value>,
note: impl Into<String>,
) -> Self
fn with_example_noted( self, value: impl Into<Value>, note: impl Into<String>, ) -> Self
Add an example value with an explanatory note.
Source§fn with_default(self, value: impl Into<Value>) -> Self
fn with_default(self, value: impl Into<Value>) -> Self
Set the default value used as an on-error fallback (see the pipeline’s validate stage).