Crate tusk_rs

source ·

Re-exports§

Modules§

Macros§

  • Embed a file into the binary as a string. This is useful for HTML files or other static files that need to be represented as a string.
  • Embed a file into the binary as a byte array. This is useful for binary files that need to be represented as a byte array.
  • A macro for creating an expression.
  • A macro for creating a foreign field.
  • A macro for creating a foreign field with an alias.
  • A macro for creating a local field.
  • A macro for creating a local field with an alias.

Structs§

  • A row of data returned from the database by a query.
  • A SQLSTATE error code

Traits§

  • A trait for types that can be converted into Postgres values.

Attribute Macros§

  • This macro is used to define a route. It takes in a request type and a route name.
  • This macro is used to define a treatment function. The function is almost the same as the [route] macro, but it should return a tuple of the response, the request, and the database connection instead of a Response.

Derive Macros§