pub enum DevicePropertyValue {
Quantity(Quantity),
CodeableConcept(CodeableConcept),
String(String),
Boolean(bool),
Integer(i32),
Range(Range),
Attachment(Attachment),
}
Expand description
Choice of types for the value[x] field in DeviceProperty
Variants§
Quantity(Quantity)
Variant accepting the Quantity type.
CodeableConcept(CodeableConcept)
Variant accepting the CodeableConcept type.
String(String)
Variant accepting the String type.
Boolean(bool)
Variant accepting the Boolean type.
Integer(i32)
Variant accepting the Integer type.
Range(Range)
Variant accepting the Range type.
Attachment(Attachment)
Variant accepting the Attachment type.
Trait Implementations§
Source§impl Clone for DevicePropertyValue
impl Clone for DevicePropertyValue
Source§fn clone(&self) -> DevicePropertyValue
fn clone(&self) -> DevicePropertyValue
Returns a duplicate 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 DevicePropertyValue
impl Debug for DevicePropertyValue
Source§impl<'de> Deserialize<'de> for DevicePropertyValue
impl<'de> Deserialize<'de> for DevicePropertyValue
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<DevicePropertyValue, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<DevicePropertyValue, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for DevicePropertyValue
impl PartialEq for DevicePropertyValue
Source§impl Serialize for DevicePropertyValue
impl Serialize for DevicePropertyValue
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for DevicePropertyValue
Auto Trait Implementations§
impl Freeze for DevicePropertyValue
impl RefUnwindSafe for DevicePropertyValue
impl Send for DevicePropertyValue
impl Sync for DevicePropertyValue
impl Unpin for DevicePropertyValue
impl UnwindSafe for DevicePropertyValue
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