pub enum UsageContextValue {
CodeableConcept(Box<CodeableConcept>),
Quantity(Box<Quantity>),
Range(Box<Range>),
Reference(Box<Reference>),
}Expand description
The `value[x]` choice of `UsageContext`.
A value that defines the context specified in this context of use. The interpretation of the value is defined by the code.
Variants§
CodeableConcept(Box<CodeableConcept>)
The CodeableConcept form.
Quantity(Box<Quantity>)
The Quantity form.
Range(Box<Range>)
The Range form.
Reference(Box<Reference>)
The Reference form.
Implementations§
Source§impl UsageContextValue
impl UsageContextValue
Sourcepub fn to_json_parts(
&self,
) -> Result<(&'static str, Option<Value>, Option<Value>), EncodeError>
pub fn to_json_parts( &self, ) -> Result<(&'static str, Option<Value>, Option<Value>), EncodeError>
The key suffix, the value part, and the _name part of this form.
§Errors
Returns super::super::codec::EncodeError when a held value has no JSON form.
Sourcepub fn from_json_parts(
suffix: &str,
value: Option<&Value>,
element: Option<&Value>,
path: &mut Path,
) -> Result<Self, DecodeError>
pub fn from_json_parts( suffix: &str, value: Option<&Value>, element: Option<&Value>, path: &mut Path, ) -> Result<Self, DecodeError>
Decodes the form named by suffix from its value and _name parts.
§Errors
Returns super::super::codec::DecodeError for an unknown suffix or a malformed part.
Trait Implementations§
Source§impl Clone for UsageContextValue
impl Clone for UsageContextValue
Source§impl Debug for UsageContextValue
impl Debug for UsageContextValue
impl Eq for UsageContextValue
Source§impl PartialEq for UsageContextValue
impl PartialEq for UsageContextValue
impl StructuralPartialEq for UsageContextValue
Auto Trait Implementations§
impl Freeze for UsageContextValue
impl RefUnwindSafe for UsageContextValue
impl Send for UsageContextValue
impl Sync for UsageContextValue
impl Unpin for UsageContextValue
impl UnsafeUnpin for UsageContextValue
impl UnwindSafe for UsageContextValue
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