macro_rules! path {
[ $( $segment:expr ),* ] => { ... };
}Expand description
Utility macro for writing path literals more ergonomically.
Every element is converted into the JsonNodePathSegment type via From, which lets the
syntax use heterogeneous expressions.
let path = bh_sd_jwt::path!["address", "region", "country"];let path = bh_sd_jwt::path!["array", 2];