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 Convert for Reference
impl Convert for Reference
fn to_integer(&self) -> Result<Integer>
fn to_decimal(&self) -> Result<Decimal>
fn to_strings(&self) -> Result<String>
fn to_datetime(&self) -> Result<DateTime>
fn to_boolean(&self) -> Result<Boolean>
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 Executor for Reference
impl Executor for Reference
fn element(&self, symbol: &String, index: &Option<usize>) -> Result<Collection>
fn to_collection(&self, index: &Option<usize>) -> Collection
fn child(&self, _index: usize) -> Result<Collection>
impl DataType for Reference
Auto Trait Implementations§
impl Freeze for Reference
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