fhirbolt_model/generated/r4b/types/
xhtml.rs1#[doc = "Base StructureDefinition for xhtml Type"]
3#[derive(Debug, Clone, PartialEq)]
4pub struct Xhtml {
5 #[doc = "unique id for the element within a resource (for internal references)"]
6 pub r#id: Option<std::string::String>,
7 #[doc = "Actual xhtml"]
8 pub r#value: std::string::String,
9}
10#[allow(clippy::derivable_impls)]
11impl Default for Xhtml {
12 fn default() -> Self {
13 Self {
14 r#id: Default::default(),
15 r#value: Default::default(),
16 }
17 }
18}
19impl<I: Into<std::string::String>> From<I> for Xhtml {
20 fn from(v: I) -> Self {
21 Xhtml {
22 value: v.into(),
23 ..Default::default()
24 }
25 }
26}