pub struct MapDefinition {
pub key_path: Option<String>,
pub entries: HashMap<String, String>,
}Expand description
A named map definition for value lookup/substitution (v2).
Fields§
§key_path: Option<String>Path to the key in calldata (cross-field key resolution).
entries: HashMap<String, String>The lookup entries: key → display value.
Trait Implementations§
Source§impl Clone for MapDefinition
impl Clone for MapDefinition
Source§fn clone(&self) -> MapDefinition
fn clone(&self) -> MapDefinition
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MapDefinition
impl Debug for MapDefinition
Source§impl<'de> Deserialize<'de> for MapDefinition
impl<'de> Deserialize<'de> for MapDefinition
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
Auto Trait Implementations§
impl Freeze for MapDefinition
impl RefUnwindSafe for MapDefinition
impl Send for MapDefinition
impl Sync for MapDefinition
impl Unpin for MapDefinition
impl UnsafeUnpin for MapDefinition
impl UnwindSafe for MapDefinition
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