Skip to main content

Row

Type Alias Row 

Source
pub type Row = HashMap<String, Value>;

Aliased Type§

pub struct Row { /* private fields */ }

Trait Implementations§

Source§

impl Entity for Row

Source§

fn object_converter() -> Box<dyn TypeConverter<Row, Row> + Send + Sync>

Source§

fn is_dictionary() -> bool

Source§

fn payload(&self, name: &str) -> Vec<Row>

Source§

fn set_payload(&mut self, name: &str, rows: Vec<Row>) -> Result<()>

Source§

fn cell(&self, name: &str) -> Option<Value>

Source§

fn set_cell(&mut self, name: &str, value: Value) -> Result<()>

Source§

fn has(&self, name: &str) -> bool

Source§

fn related<R: Entity>(&self, name: &str) -> Vec<R>

Source§

fn set_one<R: Entity>(&mut self, name: &str, item: R) -> Result<()>

Source§

fn schema_list<R: SchemaObject>(&self, name: &str) -> Vec<R>

Source§

fn set_schema_list<R: SchemaObject>( &mut self, name: &str, items: Vec<R>, ) -> Result<()>

Source§

fn set_schema_one<R: SchemaObject>(&mut self, name: &str, item: R) -> Result<()>

Source§

fn collect_list<P: Entity>(parent: &P, name: &str) -> Vec<Self>
where Self: Sized,

Source§

fn install_list<P: Entity>( parent: &mut P, name: &str, items: Vec<Self>, ) -> Result<()>
where Self: Sized,

Source§

impl IdKey for Row

Source§

fn as_row(&self) -> Option<&Row>

Source§

fn as_value(&self) -> Option<&Value>