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§
- Content
Filter - Filter for content queries.
- Content
List Result - Result of a database query for content list.
- Create
Content Input - Input type for creating content from shared type.
- Create
Node Input - Input type for creating a node.
- Create
Proof Input - Input type for creating a bandwidth proof record.
- Create
User Input - Input type for creating a user.
- Node
Filter - Filter for node queries.
Enums§
- Content
Order By - Content ordering options.
Traits§
- DbModel
Convert - Trait for types that can be converted bidirectionally with database models.
- From
DbModel - Trait for converting from a database model to a shared type.
- From
SqlEnum - Trait for parsing from SQL enum string.
- ToDb
Model - Trait for converting to a database model from a shared type.
- ToSql
Enum - Trait for types that can be converted to SQL enum string.