Struct fhir_rs::datatype::complex::UsageContext
source · pub struct UsageContext {
pub id: Option<Id>,
pub extension: Option<Vec<Extension>>,
pub code: Option<Coding>,
pub value: Option<Reference>,
}
Fields§
§id: Option<Id>
Unique id for inter-element referencing
extension: Option<Vec<Extension>>
Additional content defined by implementations
code: Option<Coding>
Type of context being specified
value: Option<Reference>
Value that defines the context
Implementations§
Trait Implementations§
source§impl Clone for UsageContext
impl Clone for UsageContext
source§fn clone(&self) -> UsageContext
fn clone(&self) -> UsageContext
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 UsageContext
impl Debug for UsageContext
source§impl Default for UsageContext
impl Default for UsageContext
source§fn default() -> UsageContext
fn default() -> UsageContext
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for UsageContext
impl<'de> Deserialize<'de> for UsageContext
fn deserialize<De>(deserializer: De) -> Result<Self>where
De: Deserializer<'de>,
source§impl Element for UsageContext
impl Element for UsageContext
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 UsageContext
impl Serialize for UsageContext
Auto Trait Implementations§
impl RefUnwindSafe for UsageContext
impl Send for UsageContext
impl Sync for UsageContext
impl Unpin for UsageContext
impl UnwindSafe for UsageContext
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