Module conversions

Module conversions 

Source
Expand description

Conversion traits between shared types and database models.

This module provides traits for converting between the shared protocol types and database-specific models. The implementations live in chie-coordinator to avoid circular dependencies.

Structs§

ContentFilter
Filter for content queries.
ContentListResult
Result of a database query for content list.
CreateContentInput
Input type for creating content from shared type.
CreateNodeInput
Input type for creating a node.
CreateProofInput
Input type for creating a bandwidth proof record.
CreateUserInput
Input type for creating a user.
NodeFilter
Filter for node queries.

Enums§

ContentOrderBy
Content ordering options.

Traits§

DbModelConvert
Trait for types that can be converted bidirectionally with database models.
FromDbModel
Trait for converting from a database model to a shared type.
FromSqlEnum
Trait for parsing from SQL enum string.
ToDbModel
Trait for converting to a database model from a shared type.
ToSqlEnum
Trait for types that can be converted to SQL enum string.