pub struct PropertyValue {
pub member: String,
pub value: Value,
}Expand description
The value of one property, kept as the FHIR choice member that carried it.
CodeSystem/$lookup types property.value as Element
(OperationDefinition-CodeSystem-lookup, R4), so any FHIR type may arrive.
Keeping the member name beside the lexical JSON loses nothing, and the
lexical form is what preserves a decimal exactly
(https://hl7.org/fhir/R4/datatypes.html#decimal).
Fields§
§member: StringThe value[x] member name, for example valueCode or valueCoding.
value: ValueThe lexical JSON the member carried.
Implementations§
Source§impl PropertyValue
impl PropertyValue
Sourcepub fn as_str(&self) -> Option<&str>
pub fn as_str(&self) -> Option<&str>
Returns the value as text when the member carried a JSON string.
Every FHIR primitive whose JSON form is a string reads through this:
code, string, dateTime and the rest. A valueCoding or a numeric
member answers None, and the caller reads PropertyValue::value.
Trait Implementations§
Source§impl Clone for PropertyValue
impl Clone for PropertyValue
Source§impl Debug for PropertyValue
impl Debug for PropertyValue
impl Eq for PropertyValue
Source§impl PartialEq for PropertyValue
impl PartialEq for PropertyValue
impl StructuralPartialEq for PropertyValue
Auto Trait Implementations§
impl Freeze for PropertyValue
impl RefUnwindSafe for PropertyValue
impl Send for PropertyValue
impl Sync for PropertyValue
impl Unpin for PropertyValue
impl UnsafeUnpin for PropertyValue
impl UnwindSafe for PropertyValue
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.