laravel-rust 0.1.0

Laravel for Rust: a full-stack Rust web framework, inspired by PHP Laravel
Documentation
//! The traits and types most handlers and route files use, in one import:
//!
//! ```
//! use laravel::prelude::*;
//!
//! #[derive(serde::Deserialize)]
//! struct Profile {
//!     name: Option<String>,
//! }
//!
//! async fn show(request: Request) -> laravel::Result<Redirect> {
//!     let name = request.parse::<Profile>()?.name.or_abort(422)?;
//!     # let _ = name;
//!     Ok(Redirect::back())
//! }
//! ```
//!
//! Its traits add methods to existing types, such as `context` on results,
//! `or_abort` on options, `snake` on strings, `is_past` on dates, and
//! `with_cookie` on responses.
//! Those methods work only while the trait is in scope. Import everything else
//! from its module, such as `laravel::foundation::ServiceProvider`, so the module's
//! name appears at the top of the file.
//!
//! The prelude leaves out [`Result`](crate::Result) and [`Error`](crate::Error),
//! which would shadow the standard library's. Write them as `laravel::Result`
//! and `laravel::Error`.
//!
//! Tests import [`laravel::testing::prelude`](crate::testing::prelude) instead, which
//! adds the test clients' traits.

pub use crate::auth::{Authenticated, Authorizable};
pub use crate::container::Inject;
pub use crate::feature::{HasFeatures, OptionalFeatures as _};
pub use crate::foundation::Application;
pub use crate::http::{IntoResponse, Json, Query, Redirect, Request, Response, StatusCode, redirect};
#[cfg(feature = "database")]
pub use crate::model::{ModelList as _, MorphRelation as _, Relation as _};
pub use crate::routing::{Params, Router};
pub use crate::session::Session;
pub use crate::str::Str;
pub use crate::time::{Dates, ToSpan};
#[cfg(feature = "database")]
pub use crate::validation::DatabaseRules;
pub use crate::validation::Valid;
pub use crate::view::{data, view};
pub use crate::{ErrorContext, OrAbort};
#[doc(inline)]
pub use laravel_http::__route as route;