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§

source

fn from_map(map: &ParamsMap) -> Result<Self, ParamsError>

Attempts to deserialize the map into the given type.

Implementations on Foreign Types§

source§

impl Params for ()

Implementors§