Struct fhir_rs::datatype::complex::Annotation
source · pub struct Annotation {
pub id: Option<Id>,
pub extension: Option<Vec<Extension>>,
pub author: Option<StringDt>,
pub time: Option<DateTimeDt>,
pub text: Option<MarkdownDt>,
}
Fields§
§id: Option<Id>
Unique id for inter-element referencing
extension: Option<Vec<Extension>>
Additional content defined by implementations
Individual responsible for the annotation
time: Option<DateTimeDt>
When the annotation was made
text: Option<MarkdownDt>
The annotation - text content (as markdown)
Implementations§
source§impl Annotation
impl Annotation
pub fn set_time<T: Into<DateTimeDt>>(self, v: T) -> Self
pub fn set_text<T: Into<MarkdownDt>>(self, v: T) -> Self
Trait Implementations§
source§impl Clone for Annotation
impl Clone for Annotation
source§fn clone(&self) -> Annotation
fn clone(&self) -> Annotation
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for Annotation
impl Debug for Annotation
source§impl Default for Annotation
impl Default for Annotation
source§fn default() -> Annotation
fn default() -> Annotation
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for Annotation
impl<'de> Deserialize<'de> for Annotation
fn deserialize<De>(deserializer: De) -> Result<Self>where
De: Deserializer<'de>,
source§impl Element for Annotation
impl Element for Annotation
fn has_id(&self) -> bool
fn id(&self) -> &Option<String>
fn set_id<T: Into<String>>(self, id: T) -> Self
fn has_extension(&self) -> bool
fn extension(&self) -> &Option<Vec<Extension>>
fn set_extension(self, ext: Vec<Extension>) -> Self
fn add_extension(self, ext: Extension) -> Self
source§impl Serialize for Annotation
impl Serialize for Annotation
Auto Trait Implementations§
impl RefUnwindSafe for Annotation
impl Send for Annotation
impl Sync for Annotation
impl Unpin for Annotation
impl UnwindSafe for Annotation
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more