pub trait Value: ToOwned + Send + Sync {
    const TYPE_NAME: &'static str;

    fn parse(input: VarInput<'_>) -> Result<Self::Owned, ()>;
    fn format(&self) -> String;
}
Expand description

A value that can be stored in a session or server variable.

Required Associated Constants§

The name of the value type.

Required Methods§

Parses a value of this type from a VarInput.

Formats this value as a flattened string.

The resulting string is guaranteed to be parsable if provided to Value::parse as a VarInput::Flat.

Implementations on Foreign Types§

Implementors§