Skip to main content

MetaValue

Trait MetaValue 

Source
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§

Source

fn fields(&self) -> Vec<&'static str>

Source

fn get_field<'a>(&'a self, field: &str) -> Option<&'a dyn MetaValue>

Source

fn get_field_mut<'a>(&'a mut self, field: &str) -> Option<&'a mut dyn MetaValue>

Source

fn get_index(&self, index: usize) -> Option<&dyn MetaValue>

Source

fn get_index_mut(&mut self, index: usize) -> Option<&mut dyn MetaValue>

Source

fn flatten(&self) -> Vec<&dyn MetaValue>

Source

fn as_any(&self) -> &dyn Any

Source

fn fhir_type(&self) -> &'static str

Source

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

Source§

fn fields(&self) -> Vec<&'static str>

Source§

fn get_field<'a>(&'a self, _field: &str) -> Option<&'a dyn MetaValue>

Source§

fn get_index(&self, _index: usize) -> Option<&dyn MetaValue>

Source§

fn get_field_mut<'a>( &'a mut self, _field: &str, ) -> Option<&'a mut dyn MetaValue>

Source§

fn get_index_mut(&mut self, _index: usize) -> Option<&mut dyn MetaValue>

Source§

fn fhir_type(&self) -> &'static str

Source§

fn as_any(&self) -> &dyn Any

Source§

fn flatten(&self) -> Vec<&dyn MetaValue>

Source§

fn is_many(&self) -> bool

Source§

impl MetaValue for String

Source§

fn fields(&self) -> Vec<&'static str>

Source§

fn get_field<'a>(&'a self, _field: &str) -> Option<&'a dyn MetaValue>

Source§

fn get_index(&self, _index: usize) -> Option<&dyn MetaValue>

Source§

fn get_field_mut<'a>( &'a mut self, _field: &str, ) -> Option<&'a mut dyn MetaValue>

Source§

fn get_index_mut(&mut self, _index: usize) -> Option<&mut dyn MetaValue>

Source§

fn fhir_type(&self) -> &'static str

Source§

fn as_any(&self) -> &dyn Any

Source§

fn flatten(&self) -> Vec<&dyn MetaValue>

Source§

fn is_many(&self) -> bool

Source§

impl MetaValue for bool

Source§

fn fields(&self) -> Vec<&'static str>

Source§

fn get_field<'a>(&'a self, _field: &str) -> Option<&'a dyn MetaValue>

Source§

fn get_index(&self, _index: usize) -> Option<&dyn MetaValue>

Source§

fn get_field_mut<'a>( &'a mut self, _field: &str, ) -> Option<&'a mut dyn MetaValue>

Source§

fn get_index_mut(&mut self, _index: usize) -> Option<&mut dyn MetaValue>

Source§

fn fhir_type(&self) -> &'static str

Source§

fn as_any(&self) -> &dyn Any

Source§

fn flatten(&self) -> Vec<&dyn MetaValue>

Source§

fn is_many(&self) -> bool

Source§

impl MetaValue for f64

Source§

fn fields(&self) -> Vec<&'static str>

Source§

fn get_field<'a>(&'a self, _field: &str) -> Option<&'a dyn MetaValue>

Source§

fn get_index(&self, _index: usize) -> Option<&dyn MetaValue>

Source§

fn get_field_mut<'a>( &'a mut self, _field: &str, ) -> Option<&'a mut dyn MetaValue>

Source§

fn get_index_mut(&mut self, _index: usize) -> Option<&mut dyn MetaValue>

Source§

fn fhir_type(&self) -> &'static str

Source§

fn as_any(&self) -> &dyn Any

Source§

fn flatten(&self) -> Vec<&dyn MetaValue>

Source§

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;

Source§

fn fields(&self) -> Vec<&'static str>

Source§

fn get_field<'a>(&'a self, _field: &str) -> Option<&'a dyn MetaValue>

Source§

fn get_index(&self, _index: usize) -> Option<&dyn MetaValue>

Source§

fn get_field_mut<'a>( &'a mut self, _field: &str, ) -> Option<&'a mut dyn MetaValue>

Source§

fn get_index_mut(&mut self, _index: usize) -> Option<&mut dyn MetaValue>

Source§

fn fhir_type(&self) -> &'static str

Source§

fn as_any(&self) -> &dyn Any

Source§

fn flatten(&self) -> Vec<&dyn MetaValue>

Source§

fn is_many(&self) -> bool

Source§

impl MetaValue for u64

Source§

fn fields(&self) -> Vec<&'static str>

Source§

fn get_field<'a>(&'a self, _field: &str) -> Option<&'a dyn MetaValue>

Source§

fn get_index(&self, _index: usize) -> Option<&dyn MetaValue>

Source§

fn get_field_mut<'a>( &'a mut self, _field: &str, ) -> Option<&'a mut dyn MetaValue>

Source§

fn get_index_mut(&mut self, _index: usize) -> Option<&mut dyn MetaValue>

Source§

fn fhir_type(&self) -> &'static str

Source§

fn as_any(&self) -> &dyn Any

Source§

fn flatten(&self) -> Vec<&dyn MetaValue>

Source§

fn is_many(&self) -> bool

Source§

impl<T> MetaValue for Box<T>
where T: MetaValue,

Source§

fn fields(&self) -> Vec<&'static str>

Source§

fn get_field<'a>(&'a self, field: &str) -> Option<&'a dyn MetaValue>

Source§

fn fhir_type(&self) -> &'static str

Source§

fn as_any(&self) -> &dyn Any

Source§

fn flatten(&self) -> Vec<&dyn MetaValue>

Source§

fn get_index(&self, index: usize) -> Option<&dyn MetaValue>

Source§

fn get_field_mut<'a>(&'a mut self, field: &str) -> Option<&'a mut dyn MetaValue>

Source§

fn get_index_mut(&mut self, index: usize) -> Option<&mut dyn MetaValue>

Source§

fn is_many(&self) -> bool

Source§

impl<T> MetaValue for Option<T>
where T: MetaValue,

Source§

fn fields(&self) -> Vec<&'static str>

Source§

fn get_field<'a>(&'a self, field: &str) -> Option<&'a dyn MetaValue>

Source§

fn fhir_type(&self) -> &'static str

Source§

fn as_any(&self) -> &dyn Any

Source§

fn flatten(&self) -> Vec<&dyn MetaValue>

Source§

fn get_index(&self, index: usize) -> Option<&dyn MetaValue>

Source§

fn get_field_mut<'a>(&'a mut self, field: &str) -> Option<&'a mut dyn MetaValue>

Source§

fn get_index_mut(&mut self, index: usize) -> Option<&mut dyn MetaValue>

Source§

fn is_many(&self) -> bool

Source§

impl<T> MetaValue for Vec<T>
where T: MetaValue,

Source§

fn fields(&self) -> Vec<&'static str>

Source§

fn get_field<'a>(&'a self, _field: &str) -> Option<&'a dyn MetaValue>

Source§

fn get_index(&self, index: usize) -> Option<&dyn MetaValue>

Source§

fn get_field_mut<'a>( &'a mut self, _field: &str, ) -> Option<&'a mut dyn MetaValue>

Source§

fn get_index_mut(&mut self, index: usize) -> Option<&mut dyn MetaValue>

Source§

fn fhir_type(&self) -> &'static str

Source§

fn as_any(&self) -> &dyn Any

Source§

fn flatten(&self) -> Vec<&dyn MetaValue>

Source§

fn is_many(&self) -> bool

Implementors§