fhirbolt_model/generated/r4/types/
xhtml.rs

1// Generated on 2023-05-17 by fhirbolt-codegen v0.10.0
2#[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}