pub trait MetaValue:
Any
+ Debug
+ Send
+ Sync {
// Required methods
fn fields(&self) -> Vec<&'static str>;
fn get_field<'a>(&'a self, field: &str) -> Option<&'a dyn MetaValue>;
fn get_field_mut<'a>(
&'a mut self,
field: &str,
) -> Option<&'a mut dyn MetaValue>;
fn get_index(&self, index: usize) -> Option<&dyn MetaValue>;
fn get_index_mut(&mut self, index: usize) -> Option<&mut dyn MetaValue>;
fn flatten(&self) -> Vec<&dyn MetaValue>;
fn as_any(&self) -> &dyn Any;
fn fhir_type(&self) -> &'static str;
fn is_many(&self) -> bool;
}Required Methods§
fn fields(&self) -> Vec<&'static str>
fn get_field<'a>(&'a self, field: &str) -> Option<&'a dyn MetaValue>
fn get_field_mut<'a>(&'a mut self, field: &str) -> Option<&'a mut dyn MetaValue>
fn get_index(&self, index: usize) -> Option<&dyn MetaValue>
fn get_index_mut(&mut self, index: usize) -> Option<&mut dyn MetaValue>
fn flatten(&self) -> Vec<&dyn MetaValue>
fn as_any(&self) -> &dyn Any
fn fhir_type(&self) -> &'static str
fn is_many(&self) -> bool
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
Source§impl MetaValue for &'static str
impl MetaValue for &'static str
fn fields(&self) -> Vec<&'static str>
fn get_field<'a>(&'a self, _field: &str) -> Option<&'a dyn MetaValue>
fn get_index(&self, _index: usize) -> Option<&dyn MetaValue>
fn get_field_mut<'a>( &'a mut self, _field: &str, ) -> Option<&'a mut dyn MetaValue>
fn get_index_mut(&mut self, _index: usize) -> Option<&mut dyn MetaValue>
fn fhir_type(&self) -> &'static str
fn as_any(&self) -> &dyn Any
fn flatten(&self) -> Vec<&dyn MetaValue>
fn is_many(&self) -> bool
Source§impl MetaValue for String
impl MetaValue for String
fn fields(&self) -> Vec<&'static str>
fn get_field<'a>(&'a self, _field: &str) -> Option<&'a dyn MetaValue>
fn get_index(&self, _index: usize) -> Option<&dyn MetaValue>
fn get_field_mut<'a>( &'a mut self, _field: &str, ) -> Option<&'a mut dyn MetaValue>
fn get_index_mut(&mut self, _index: usize) -> Option<&mut dyn MetaValue>
fn fhir_type(&self) -> &'static str
fn as_any(&self) -> &dyn Any
fn flatten(&self) -> Vec<&dyn MetaValue>
fn is_many(&self) -> bool
Source§impl MetaValue for bool
impl MetaValue for bool
fn fields(&self) -> Vec<&'static str>
fn get_field<'a>(&'a self, _field: &str) -> Option<&'a dyn MetaValue>
fn get_index(&self, _index: usize) -> Option<&dyn MetaValue>
fn get_field_mut<'a>( &'a mut self, _field: &str, ) -> Option<&'a mut dyn MetaValue>
fn get_index_mut(&mut self, _index: usize) -> Option<&mut dyn MetaValue>
fn fhir_type(&self) -> &'static str
fn as_any(&self) -> &dyn Any
fn flatten(&self) -> Vec<&dyn MetaValue>
fn is_many(&self) -> bool
Source§impl MetaValue for f64
impl MetaValue for f64
fn fields(&self) -> Vec<&'static str>
fn get_field<'a>(&'a self, _field: &str) -> Option<&'a dyn MetaValue>
fn get_index(&self, _index: usize) -> Option<&dyn MetaValue>
fn get_field_mut<'a>( &'a mut self, _field: &str, ) -> Option<&'a mut dyn MetaValue>
fn get_index_mut(&mut self, _index: usize) -> Option<&mut dyn MetaValue>
fn fhir_type(&self) -> &'static str
fn as_any(&self) -> &dyn Any
fn flatten(&self) -> Vec<&dyn MetaValue>
fn is_many(&self) -> bool
Source§impl MetaValue for i64
067 public static final String FP_String = http://hl7.org/fhirpath/System.String;
068 public static final String FP_Boolean = http://hl7.org/fhirpath/System.Boolean;
069 public static final String FP_Integer = http://hl7.org/fhirpath/System.Integer;
070 public static final String FP_Decimal = http://hl7.org/fhirpath/System.Decimal;
071 public static final String FP_Quantity = http://hl7.org/fhirpath/System.Quantity;
072 public static final String FP_DateTime = http://hl7.org/fhirpath/System.DateTime;
073 public static final String FP_Time = http://hl7.org/fhirpath/System.Time;
impl MetaValue for i64
067 public static final String FP_String = http://hl7.org/fhirpath/System.String;
068 public static final String FP_Boolean = http://hl7.org/fhirpath/System.Boolean;
069 public static final String FP_Integer = http://hl7.org/fhirpath/System.Integer;
070 public static final String FP_Decimal = http://hl7.org/fhirpath/System.Decimal;
071 public static final String FP_Quantity = http://hl7.org/fhirpath/System.Quantity;
072 public static final String FP_DateTime = http://hl7.org/fhirpath/System.DateTime;
073 public static final String FP_Time = http://hl7.org/fhirpath/System.Time;