TypeWriter

Trait TypeWriter 

Source
pub trait TypeWriter {
    // Required methods
    fn id(&self) -> &str;
    fn field_type(&self, field_type: &FieldType) -> String;

    // Provided methods
    fn schema(&self, op: &ObjectPath) -> String { ... }
    fn index_type(&self) -> String { ... }
    fn supports_schemas(&self) -> bool { ... }
    fn supports_permissions(&self) -> bool { ... }
    fn supports_auto_increment(&self) -> bool { ... }
    fn supports_sequences(&self) -> bool { ... }
}
Expand description

Trait for a type that can convert a FieldType to String

Required Methods§

Source

fn id(&self) -> &str

Source

fn field_type(&self, field_type: &FieldType) -> String

Provided Methods§

Implementors§