fhirbolt_model/generated/r4b/types/
markdown.rs1#[doc = "Base StructureDefinition for markdown type: A string that may contain Github Flavored Markdown syntax for optional processing by a mark down presentation engine"]
3#[derive(Debug, Clone, PartialEq)]
4pub struct Markdown {
5 #[doc = "unique id for the element within a resource (for internal references)"]
6 pub r#id: Option<std::string::String>,
7 #[doc = "May be used to represent additional information that is not part of the basic definition of the resource. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."]
8 pub r#extension: Vec<super::super::types::Extension>,
9 #[doc = "Primitive value for markdown"]
10 pub r#value: Option<std::string::String>,
11}
12#[allow(clippy::derivable_impls)]
13impl Default for Markdown {
14 fn default() -> Self {
15 Self {
16 r#id: Default::default(),
17 r#extension: Default::default(),
18 r#value: Default::default(),
19 }
20 }
21}
22impl<I: Into<std::string::String>> From<I> for Markdown {
23 fn from(v: I) -> Self {
24 Markdown {
25 value: Some(v.into()),
26 ..Default::default()
27 }
28 }
29}