Trait Injector

pub trait Injector {
    // Required method
    fn set(&mut self, key: &str, value: String);
}
Expand description

Injector provides an interface for adding fields from an underlying struct like HashMap

Required Methods§

fn set(&mut self, key: &str, value: String)

Add a key and value to the underlying data.

Implementations on Foreign Types§

§

impl Injector for HeaderInjector<'_>

§

fn set(&mut self, key: &str, value: String)

Set a key and value in the HeaderMap. Does nothing if the key or value are not valid inputs.

§

impl<S> Injector for HashMap<String, String, S>
where S: BuildHasher,

§

fn set(&mut self, key: &str, value: String)

Set a key and value in the HashMap.

Implementors§