Trait obi::schema::OBISchema[][src]

pub trait OBISchema {
    fn add_definitions_recursively(
        definitions: &mut HashMap<Declaration, Definition>
    );
fn declaration() -> Declaration; fn add_definition(
        declaration: Declaration,
        definition: Definition,
        definitions: &mut HashMap<Declaration, Definition>
    ) { ... } }

The declaration and the definition of the type that can be used to decode/encode OBI without the Rust type that produced it.

Required methods

fn add_definitions_recursively(
    definitions: &mut HashMap<Declaration, Definition>
)
[src]

Recursively, using DFS, add type definitions required for this type. For primitive types this is an empty map. Type definition explains how to serialize/deserialize a type.

fn declaration() -> Declaration[src]

Get the name of the type without brackets.

Loading content...

Provided methods

fn add_definition(
    declaration: Declaration,
    definition: Definition,
    definitions: &mut HashMap<Declaration, Definition>
)
[src]

Helper method to add a single type definition to the map.

Loading content...

Implementations on Foreign Types

impl OBISchema for bool[src]

impl OBISchema for char[src]

impl OBISchema for i8[src]

impl OBISchema for i16[src]

impl OBISchema for i32[src]

impl OBISchema for i64[src]

impl OBISchema for i128[src]

impl OBISchema for u8[src]

impl OBISchema for u16[src]

impl OBISchema for u32[src]

impl OBISchema for u64[src]

impl OBISchema for u128[src]

impl OBISchema for String[src]

impl<T> OBISchema for Vec<T> where
    T: OBISchema
[src]

Loading content...

Implementors

Loading content...