Skip to main content

dry_require_key

Macro dry_require_key 

Source
macro_rules! dry_require_key {
    ($ctx:expr, $key:expr) => { ... };
}
Expand description

Retrieve a required value from dry context using a custom key name let var: Type = dry_require_key!(dry_context, “custom_key”)?;