Trait leptos_router::Params
source · pub trait Paramswhere
Self: Sized,{
// Required method
fn from_map(map: &ParamsMap) -> Result<Self, ParamsError>;
}
Expand description
A simple method of deserializing key-value data (like route params or URL search)
into a concrete data type. Self
should typically be a struct in which
each field’s type implements FromStr
.
Required Methods§
sourcefn from_map(map: &ParamsMap) -> Result<Self, ParamsError>
fn from_map(map: &ParamsMap) -> Result<Self, ParamsError>
Attempts to deserialize the map into the given type.
Object Safety§
This trait is not object safe.