pub struct InertiaTemporarySession {
pub errors: Option<Map<String, Value>>,
pub prev_req_url: String,
}
Expand description
InertiaTemporarySession
struct contains data that InertiaMiddleware will try to extract
from the request and merge with shared props.
You must inject it by yourself by a second middleware, which gets these information from your framework sessions manager.
Fields§
§errors: Option<Map<String, Value>>
§prev_req_url: String
Trait Implementations§
Source§impl Clone for InertiaTemporarySession
impl Clone for InertiaTemporarySession
Source§fn clone(&self) -> InertiaTemporarySession
fn clone(&self) -> InertiaTemporarySession
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Default for InertiaTemporarySession
impl Default for InertiaTemporarySession
Source§impl FromRequest for InertiaTemporarySession
impl FromRequest for InertiaTemporarySession
Source§type Future = Ready<Result<InertiaTemporarySession, <InertiaTemporarySession as FromRequest>::Error>>
type Future = Ready<Result<InertiaTemporarySession, <InertiaTemporarySession as FromRequest>::Error>>
Future that resolves to a
Self
. Read moreSource§fn from_request(req: &HttpRequest, _: &mut Payload) -> Self::Future
fn from_request(req: &HttpRequest, _: &mut Payload) -> Self::Future
Create a
Self
from request parts asynchronously.Auto Trait Implementations§
impl Freeze for InertiaTemporarySession
impl RefUnwindSafe for InertiaTemporarySession
impl Send for InertiaTemporarySession
impl Sync for InertiaTemporarySession
impl Unpin for InertiaTemporarySession
impl UnwindSafe for InertiaTemporarySession
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