Struct fhir_rs::datatype::complex::Attachment
source · pub struct Attachment {Show 15 fields
pub id: Option<Id>,
pub extension: Option<Vec<Extension>>,
pub content_type: Option<CodeDt>,
pub language: Option<CodeDt>,
pub data: Option<Base64BinaryDt>,
pub url: Option<UrlDt>,
pub size: Option<Integer64Dt>,
pub hash: Option<Base64BinaryDt>,
pub title: Option<StringDt>,
pub creation: Option<DateTimeDt>,
pub height: Option<PositiveIntDt>,
pub width: Option<PositiveIntDt>,
pub frames: Option<PositiveIntDt>,
pub duration: Option<DecimalDt>,
pub pages: Option<PositiveIntDt>,
}
Fields§
§id: Option<Id>
Unique id for inter-element referencing
extension: Option<Vec<Extension>>
Additional content defined by implementations
content_type: Option<CodeDt>
Mime type of the content, with charset etc.
language: Option<CodeDt>
Human language of the content (BCP-47)
data: Option<Base64BinaryDt>
Data inline, base64ed
url: Option<UrlDt>
Uri where the data can be found
size: Option<Integer64Dt>
Number of bytes of content (if url provided)
hash: Option<Base64BinaryDt>
Hash of the data (sha-1, base64ed)
title: Option<StringDt>
Label to display in place of the data
creation: Option<DateTimeDt>
Date attachment was first created
height: Option<PositiveIntDt>
Height of the image in pixels (photo/video)
width: Option<PositiveIntDt>
Width of the image in pixels (photo/video)
frames: Option<PositiveIntDt>
Number of frames if > 1 (photo)
duration: Option<DecimalDt>
Length in seconds (audio / video)
pages: Option<PositiveIntDt>
Number of printed pages
Implementations§
source§impl Attachment
impl Attachment
pub fn set_content_type<T: Into<CodeDt>>(self, v: T) -> Self
pub fn set_language<T: Into<CodeDt>>(self, v: T) -> Self
pub fn set_data<T: Into<Base64BinaryDt>>(self, v: T) -> Self
pub fn set_url<T: Into<UrlDt>>(self, v: T) -> Self
pub fn set_size<T: Into<Integer64Dt>>(self, v: T) -> Self
pub fn set_hash<T: Into<Base64BinaryDt>>(self, v: T) -> Self
pub fn set_title<T: Into<StringDt>>(self, v: T) -> Self
pub fn set_creation<T: Into<DateTimeDt>>(self, v: T) -> Self
pub fn set_height<T: Into<PositiveIntDt>>(self, v: T) -> Self
pub fn set_width<T: Into<PositiveIntDt>>(self, v: T) -> Self
pub fn set_frames<T: Into<PositiveIntDt>>(self, v: T) -> Self
pub fn set_duration<T: Into<DecimalDt>>(self, v: T) -> Self
pub fn set_pages<T: Into<PositiveIntDt>>(self, v: T) -> Self
Trait Implementations§
source§impl Clone for Attachment
impl Clone for Attachment
source§fn clone(&self) -> Attachment
fn clone(&self) -> Attachment
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 Attachment
impl Debug for Attachment
source§impl Default for Attachment
impl Default for Attachment
source§fn default() -> Attachment
fn default() -> Attachment
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for Attachment
impl<'de> Deserialize<'de> for Attachment
fn deserialize<De>(deserializer: De) -> Result<Self>where
De: Deserializer<'de>,
source§impl Element for Attachment
impl Element for Attachment
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 Attachment
impl Serialize for Attachment
Auto Trait Implementations§
impl RefUnwindSafe for Attachment
impl Send for Attachment
impl Sync for Attachment
impl Unpin for Attachment
impl UnwindSafe for Attachment
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