pub trait Param {
type Output;
// Required methods
fn name(&self) -> &str;
fn default(&self) -> Option<Self::Output>;
fn extract(&self, raw: &str) -> Option<Self::Output>;
fn serialize(&self, value: Self::Output) -> Option<String>;
}Expand description
A type that transforms hash function parameters to and from the raw, serialized version.
Required Associated Types§
Required Methods§
Sourcefn default(&self) -> Option<Self::Output>
fn default(&self) -> Option<Self::Output>
The default value for the parameter if it isn’t included, or None if the parameter is required.