Skip to main content

PriceTagSource

Trait PriceTagSource 

Source
pub trait PriceTagSource:
    Clone
    + Send
    + Sync
    + 'static {
    // Required method
    fn resolve(
        &self,
        headers: &HeaderMap,
        uri: &Uri,
        base_url: &Url,
    ) -> impl Future<Output = Vec<PriceTag>> + Send;
}
Available on crate feature server only.
Expand description

Resolves V2 price tags for one request.

Required Methods§

Source

fn resolve( &self, headers: &HeaderMap, uri: &Uri, base_url: &Url, ) -> impl Future<Output = Vec<PriceTag>> + Send

Always returns a (possibly empty) tag list. Empty means layer bypass.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§