Macro casper_types::runtime_args [−][src]
macro_rules! runtime_args { () => { ... }; ($($key : expr => $value : expr,) +) => { ... }; ($($key : expr => $value : expr), *) => { ... }; }
Expand description
Macro that makes it easier to construct named arguments.
NOTE: This macro does not propagate possible errors that could occur while creating a
crate::CLValue
. For such cases creating RuntimeArgs
manually is recommended.
Example usage
use casper_types::{RuntimeArgs, runtime_args}; let _named_args = runtime_args! { "foo" => 42, "bar" => "Hello, world!" };