Module obi::schema[][src]

The important components are: OBISchema trait, Definition and Declaration types

  • OBISchema trait allows any type that implements it to be self-descriptive, i.e. generate it’s own schema;
  • Declaration is used to describe the type identifier, e.g. [u64];
  • Definition is used to describe the structure of the type;

Enums

Definition

The type that we use to represent the definition of the OBI type.

Traits

OBISchema

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

Functions

get_schema

Type Definitions

Declaration

The type that we use to represent the declaration of the OBI type.

FieldName

The name of the field in the struct (can be used to convert JSON to OBI using the schema).