StoreObject

Trait StoreObject 

Source
pub trait StoreObject: Clone + Default {
    // Required methods
    fn get_field_val(&self, field_name: &str) -> FieldVal;
    fn get_type_name(&self) -> &'static str;
    fn get_fields_list(&self) -> &'static [&'static str];
    fn set_field_val(
        &mut self,
        field_name: &str,
        val: impl Into<FieldVal>,
    ) -> DBResult<()>;
}

Required Methods§

Source

fn get_field_val(&self, field_name: &str) -> FieldVal

Source

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

Source

fn get_fields_list(&self) -> &'static [&'static str]

Source

fn set_field_val( &mut self, field_name: &str, val: impl Into<FieldVal>, ) -> DBResult<()>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§