pub enum SessionFieldKind {
Text,
Int,
Bool,
}Expand description
★ components IS NOT OPTIONAL CONTEXT — IT DECIDES THE ANSWER.
A -> View route’s template is checked by the server-side walk, and that walk refuses a
component it CANNOT SEE (rightly: whether an unseen child renders on a server is unknown). This
function used to call the no-list form, so every ## Route … -> View: that placed a component
was quietly dropped from the router — the route never reached the dispatcher, and
route("GET", "/report") came back as an unknown function, or as a 404 for a route the author
can see in their file. Which is the whole shape a page is BUILT out of: a row, a card, a field.
So every caller hands over the components it can see. A caller that genuinely has none (a route
checked on its own) passes an empty slice and gets the honest, conservative refusal.
The kinds of field a ## Session may carry.
Deliberately three. A session rides in a COOKIE — a few hundred bytes a visitor holds and a browser sends on every request — so it is the wrong place for a list, a record or a map, and accepting one would be inviting a page to put its database in a header. Anything else is refused BY NAME at compile time rather than encoded as something plausible.
Variants§
Trait Implementations§
Source§impl Clone for SessionFieldKind
impl Clone for SessionFieldKind
Source§fn clone(&self) -> SessionFieldKind
fn clone(&self) -> SessionFieldKind
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SessionFieldKind
impl Debug for SessionFieldKind
Source§impl PartialEq for SessionFieldKind
impl PartialEq for SessionFieldKind
impl Copy for SessionFieldKind
impl Eq for SessionFieldKind
impl StructuralPartialEq for SessionFieldKind
Auto Trait Implementations§
impl Freeze for SessionFieldKind
impl RefUnwindSafe for SessionFieldKind
impl Send for SessionFieldKind
impl Sync for SessionFieldKind
impl Unpin for SessionFieldKind
impl UnsafeUnpin for SessionFieldKind
impl UnwindSafe for SessionFieldKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.