Crate dogy_backend_api

Source
Expand description

Main entry point for the Dogy API server. This module sets up the server, database connection, and routes.

Modulesยง

config ๐Ÿ”’
error ๐Ÿ”’
This module contains the main error handling for all routes and axum handlers.
middleware ๐Ÿ”’
service ๐Ÿ”’

Structsยง

AppState ๐Ÿ”’
This is the application state that is shared across all axum handlers.

Enumsยง

Error
Main Error Types for all axum handlers.

Functionsยง

main
Main function to start the server.

Type Aliasesยง

PayloadJson
This type is used when you have a JSON request body as it can potentially throw [JsonRejection], which is not handled by serde_json.
Result
Boilerplate Result Type from rust-10x style convention. This result type is used by all axum handlers.