pub trait IntoRow {
    fn accept_cell_visitor<V: CellVisitor>(&self, visitor: &mut V);
    fn accept_column_visitor<V: ColumnVisitor>(visitor: &mut V);

    fn to_row(&self) -> BTreeMap<String, CellValue> { ... }
    fn to_json(&self) -> Value { ... }
    fn columns() -> Vec<String>Notable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
    A: Allocator
{ ... } }
Expand description

Something that can be converted into a row in Django output.

This is suitable for the top level of Django output; i.e. things whose collection has its own endpoint.

Required methods

Visit the values in a row of output for this type using visitor.

Visit the columns in a row using visitor; note that this does not require an instance of the type.

Provided methods

Convert an instance of this type into a BTreeMap.

Convert an instance of this type into a serde_json::Value

Collect the columns for a table of this type into an ordered sequence.

Implementations on Foreign Types

Implementors