Expand description
Prelude module for common imports
Re-exports§
pub use crate::configuration::CONF;pub use crate::configuration::DEBUG;pub use crate::repository::APP;pub use crate::repository::MAIN;pub use crate::shared::MODULE;pub use crate::utils::Utils;pub use crate::utils::U;pub use crate::views::VIEW;pub use crate::workers::WORKER;pub use crate::pool::global_request_pool;pub use crate::pool::PooledRequest;pub use crate::pool::RequestPool;pub use crate::events::builtin;pub use crate::events::EventContext;pub use crate::events::EventEmitter;pub use crate::models::DatabaseModel;pub use crate::models::ModelQuery;pub use crate::models::OrderDirection;pub use crate::models::PagedResult;pub use crate::models::SqlValue;pub use crate::db::DB;pub use crate::http::FileCollection;pub use crate::http::UploadedFile;pub use crate::http::FormData;pub use crate::http::FormValue;pub use crate::http::Body;pub use crate::http::BodyStream;pub use crate::http::SseEvent;pub use crate::websocket::ClientId;pub use crate::websocket::CloseCode;pub use crate::websocket::Message;pub use crate::websocket::SocketClient;pub use crate::websocket::SocketRoom;pub use crate::websocket::WebSocket;pub use crate::websocket::WebSocketReceiver;pub use crate::websocket::WebSocketSender;pub use crate::websocket::SOCKET;pub use crate::*;
Macros§
- auto_
controllers - Auto-discover and include all controllers from src/controllers/*.rs
- auto_
definitions - Auto-discover and include all definitions from src/definitions/*.rs
- auto_
events - Auto-discover and include all event handlers from src/events/*.rs
- auto_
middleware - Auto-discover and include all middleware from src/middleware/*.rs
- auto_
models - Auto-discover and include all models from src/models/*.rs
- auto_
modules - Auto-discover and include all modules from src/modules/*.rs
- auto_
workers - Auto-discover and include all workers from src/workers/*.rs
- impl_
shared_ helper - Convenience macro for implementing SharedModule trait for helper structs
- impl_
shared_ service - Convenience macro for implementing SharedModule trait for service structs
- impl_
shared_ util - Convenience macro for implementing SharedModule trait for utility structs
- json
- Construct a
serde_json::Valuefrom a JSON literal.
Structs§
Traits§
- Deserialize
- A data structure that can be deserialized from any data format supported by Serde.
- Serialize
- A data structure that can be serialized into any data format supported by Serde.
Attribute Macros§
- auto_
discover - Auto-discover and generate module declarations for the entire application
Derive Macros§
- Deserialize
- Derive macro available if serde is built with
features = ["derive"]. - Serialize
- Derive macro available if serde is built with
features = ["derive"].