pub trait Value: ToOwned + Send + Sync {
const TYPE_NAME: &'static str;
fn parse(s: &str) -> Result<Self::Owned, ()>;
fn format(&self) -> String;
}
Expand description
A value that can be stored in a session variable.
pub trait Value: ToOwned + Send + Sync {
const TYPE_NAME: &'static str;
fn parse(s: &str) -> Result<Self::Owned, ()>;
fn format(&self) -> String;
}
A value that can be stored in a session variable.