Macro fhirbolt_element::Element
source · macro_rules! Element { {$($k: expr => $v: expr),* $(,)?} => { ... }; }
Expand description
Macro for creating [Element
].
Examples
use fhirbolt::FhirReleases;
use fhirbolt::element::{Element, Value, Primitive};
let element: Element<{ FhirReleases::R4 }> = Element! {
"value" => Value::Primitive(Primitive::String("123".into())),
};