Skip to main content

ApiKeyAwareSignerFactory

Trait ApiKeyAwareSignerFactory 

Source
pub trait ApiKeyAwareSignerFactory: Send + Sync {
    // Required method
    fn with_router_choice(
        &self,
        api_key: String,
        router_chosen_upstream_name: String,
    ) -> Arc<dyn SignerFactory>;
}
Expand description

Factory extension that binds signer construction to the router-selected upstream.

Required Methods§

Source

fn with_router_choice( &self, api_key: String, router_chosen_upstream_name: String, ) -> Arc<dyn SignerFactory>

Returns a signer factory using the downstream API key and router-selected upstream name.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§