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 duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for InertiaTemporarySession
impl Debug for InertiaTemporarySession
Source§impl Default for InertiaTemporarySession
impl Default for InertiaTemporarySession
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoInertiaPropResult for Twhere
T: Serialize,
impl<T> IntoInertiaPropResult for Twhere
T: Serialize,
Source§fn into_inertia_value(self) -> Result<Value, InertiaError>
fn into_inertia_value(self) -> Result<Value, InertiaError>
Converts a serializeable object into a
serde_json::Value
. If it fails,
automatically maps the error to InertiaError
.