Re-exports§
pub use config::DatabaseConfig;
pub use database::Database;
pub use database::DatabaseError;
pub use database::DatabaseConnection;
pub use json::FromJson;
pub use json::JsonArray;
pub use json::JsonObject;
pub use json::ToJson;
pub use json::JsonParseError;
pub use query::FromPostgres;
pub use query::FromPostgresError;
pub use query::PostgresReadFields;
pub use query::PostgresWrite;
pub use query::PostgresWriteFields;
pub use query::PostgresWriteable;
pub use query::PostgresReadable;
pub use query::PostgresTable;
pub use query::PostgresJoins;
pub use query::PostgresJoin;
pub use query::PostgresField;
pub use query::PostgresFieldLocation;
pub use reqres::BodyContents;
pub use reqres::Request;
pub use reqres::RequestType;
pub use reqres::Response;
pub use reqres::ResponseStatusCode;
pub use reqres::RouteError;
pub use server::IncomingRequest;
pub use server::Route;
pub use server::Server;
pub use urlencoded::FromUrlEncoded;
pub use urlencoded::UrlEncoded;
pub use chrono;
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.