pub struct ErrorPages {
pub not_found: String,
pub internal: String,
}Expand description
Rendered once (at Application::with_error_pages call time, not per
request) and cached as plain Strings rather than a render closure or
a larust_view::View - these pages have no per-request dynamic content
(no session, no user), and this crate has no dependency on the view
engine at all (see Cargo.toml), so there’s nothing a closure would buy
over pre-rendering once.
Fields§
§not_found: String§internal: StringAuto Trait Implementations§
impl Freeze for ErrorPages
impl RefUnwindSafe for ErrorPages
impl Send for ErrorPages
impl Sync for ErrorPages
impl Unpin for ErrorPages
impl UnsafeUnpin for ErrorPages
impl UnwindSafe for ErrorPages
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more