Module tusk_rs::query

source ·

Structs§

  • A struct that symbolizes a field in a Postgres table. This is used for reading from tables.
  • A struct that defines how Tusk should join tables for you.
  • A struct that contains data to write into a Postgres table.

Enums§

Traits§

  • A trait for getting a struct from a Postgres row.
  • A trait for defining a struct as bulk writeable. This is typically defined on collections of structs. Tusk includes a default implementation for Vec where T implements PostgresWriteable.
  • A trait for defining joins in Postgres. This is used for determining how to join tables. This is required for all Tusk database operations.
  • A trait for defining fields to read from in Postgres. This is required for all Tusk database operations.
  • A trait that declares a struct as readable. Even though there are no methods, this is a stub for future implementations.
  • A trait for defining a table in Postgres. This is used for determining which table to read/write from. This is required for all Tusk database operations.
  • A trait for defining fields to write to in Postgres. This is required for all Tusk database operations.
  • A trait that declares a struct as writeable. Do not manually implement this. Instead, implement PostgresWriteFields and PostgresJoins, and derive this trait.