pub struct Reference {
pub id: Option<Id>,
pub extension: Option<Vec<Extension>>,
pub reference: Option<StringDt>,
pub type_: Option<UriDt>,
pub identifier: Option<Box<Identifier>>,
pub display: Option<StringDt>,
}
Fields§
§id: Option<Id>
Unique id for inter-element referencing
extension: Option<Vec<Extension>>
Additional content defined by implementations
reference: Option<StringDt>
Literal reference, Relative, internal or absolute URL
type_: Option<UriDt>
Type the reference refers to (e.g. “Patient”) - must be a resource in resources
identifier: Option<Box<Identifier>>
Logical reference, when literal reference is not known
display: Option<StringDt>
Text alternative for the resource
Implementations§
source§impl Reference
impl Reference
pub fn set_reference<T: Into<StringDt>>(self, v: T) -> Self
pub fn set_type_<T: Into<UriDt>>(self, v: T) -> Self
pub fn set_identifier(self, v: Box<Identifier>) -> Self
pub fn set_display<T: Into<StringDt>>(self, v: T) -> Self
Trait Implementations§
source§impl<'de> Deserialize<'de> for Reference
impl<'de> Deserialize<'de> for Reference
fn deserialize<De>(deserializer: De) -> Result<Self>where
De: Deserializer<'de>,
source§impl Element for Reference
impl Element for Reference
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
Auto Trait Implementations§
impl RefUnwindSafe for Reference
impl Send for Reference
impl Sync for Reference
impl Unpin for Reference
impl UnwindSafe for Reference
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