pub enum FhirPrimitiveType {
Show 18 variants
Boolean,
Integer,
String,
Date,
DateTime,
Instant,
Time,
Decimal,
Uri,
Url,
Canonical,
Code,
Oid,
Id,
Markdown,
Base64Binary,
UnsignedInt,
PositiveInt,
}Expand description
FHIR primitive types
Variants§
Boolean
Integer
String
Date
DateTime
Instant
Time
Decimal
Uri
Url
Canonical
Code
Oid
Id
Markdown
Base64Binary
UnsignedInt
PositiveInt
Implementations§
Source§impl FhirPrimitiveType
impl FhirPrimitiveType
Sourcepub fn from_fhir_type(fhir_type: &str) -> Option<Self>
pub fn from_fhir_type(fhir_type: &str) -> Option<Self>
Convert FHIR type string to FhirPrimitiveType
Sourcepub fn variant_name(&self) -> &'static str
pub fn variant_name(&self) -> &'static str
Get the enum variant name as a string for code generation
Trait Implementations§
Source§impl Clone for FhirPrimitiveType
impl Clone for FhirPrimitiveType
Source§fn clone(&self) -> FhirPrimitiveType
fn clone(&self) -> FhirPrimitiveType
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 FhirPrimitiveType
impl Debug for FhirPrimitiveType
Source§impl<'de> Deserialize<'de> for FhirPrimitiveType
impl<'de> Deserialize<'de> for FhirPrimitiveType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for FhirPrimitiveType
impl Hash for FhirPrimitiveType
Source§impl PartialEq for FhirPrimitiveType
impl PartialEq for FhirPrimitiveType
Source§impl Serialize for FhirPrimitiveType
impl Serialize for FhirPrimitiveType
impl Copy for FhirPrimitiveType
impl Eq for FhirPrimitiveType
impl StructuralPartialEq for FhirPrimitiveType
Auto Trait Implementations§
impl Freeze for FhirPrimitiveType
impl RefUnwindSafe for FhirPrimitiveType
impl Send for FhirPrimitiveType
impl Sync for FhirPrimitiveType
impl Unpin for FhirPrimitiveType
impl UnsafeUnpin for FhirPrimitiveType
impl UnwindSafe for FhirPrimitiveType
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.