pub struct Always<T>(pub T);Expand description
Wraps a value that must always be sent, regardless of X-Inertia-Except.
Detected anywhere in the props tree, through any serialization path
(typed #[derive(Serialize)] structs, serde_json::json!, hand-built
Values, etc.). The wrapper serializes as a single-key sentinel object
that the Inertia resolver strips before sending to the client. The Inertia
protocol only honors the rule at the top level of a render’s props —
wrappers at deeper paths are still detected and stripped but have no
wire-format meaning.
Tuple Fields§
§0: TImplementations§
Trait Implementations§
impl<T: Copy> Copy for Always<T>
impl<T: Eq> Eq for Always<T>
impl<T> StructuralPartialEq for Always<T>
Auto Trait Implementations§
impl<T> Freeze for Always<T>where
T: Freeze,
impl<T> RefUnwindSafe for Always<T>where
T: RefUnwindSafe,
impl<T> Send for Always<T>where
T: Send,
impl<T> Sync for Always<T>where
T: Sync,
impl<T> Unpin for Always<T>where
T: Unpin,
impl<T> UnsafeUnpin for Always<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Always<T>where
T: UnwindSafe,
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.