pub enum DeviceDefinitionPropertyValue {
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 DeviceDefinitionProperty
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 DeviceDefinitionPropertyValue
impl Clone for DeviceDefinitionPropertyValue
Source§fn clone(&self) -> DeviceDefinitionPropertyValue
fn clone(&self) -> DeviceDefinitionPropertyValue
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<'de> Deserialize<'de> for DeviceDefinitionPropertyValue
impl<'de> Deserialize<'de> for DeviceDefinitionPropertyValue
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<DeviceDefinitionPropertyValue, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<DeviceDefinitionPropertyValue, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for DeviceDefinitionPropertyValue
impl PartialEq for DeviceDefinitionPropertyValue
Source§fn eq(&self, other: &DeviceDefinitionPropertyValue) -> bool
fn eq(&self, other: &DeviceDefinitionPropertyValue) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.Source§impl Serialize for DeviceDefinitionPropertyValue
impl Serialize for DeviceDefinitionPropertyValue
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 DeviceDefinitionPropertyValue
Auto Trait Implementations§
impl Freeze for DeviceDefinitionPropertyValue
impl RefUnwindSafe for DeviceDefinitionPropertyValue
impl Send for DeviceDefinitionPropertyValue
impl Sync for DeviceDefinitionPropertyValue
impl Unpin for DeviceDefinitionPropertyValue
impl UnwindSafe for DeviceDefinitionPropertyValue
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