Trait ConfigGenerator

Source
pub trait ConfigGenerator {
    // Required method
    fn config() -> Config;
}
Expand description

Injects a customized Config type for signature verification

If you don’t need to customize the Config, you can use ()

use http_signature_normalization_actix_extractor::{Config, ConfigGenerator};

struct Gen;

impl ConfigGenerator for Gen {
    fn config() -> Config {
        Config::new()
    }
}

Required Methods§

Source

fn config() -> Config

Produce a new Config

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl ConfigGenerator for ()

Implementors§