Skip to main content

ParamFragment

Trait ParamFragment 

Source
pub trait ParamFragment {
    // Required methods
    fn key(&self) -> Cow<'_, str>;
    fn value(&self) -> Option<Cow<'_, str>>;

    // Provided method
    fn fragment(&self) -> Cow<'_, str> { ... }
}
Expand description

represents a key value pair inside a multi value query string parameter

Required Methods§

Source

fn key(&self) -> Cow<'_, str>

the key, or name, of the fragment

Source

fn value(&self) -> Option<Cow<'_, str>>

the value of the fragment, if any

Provided Methods§

Source

fn fragment(&self) -> Cow<'_, str>

key and value are concat using :

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§