Skip to main content

TierBackend

Trait TierBackend 

Source
pub trait TierBackend: Send + Sync {
    // Required method
    fn resolve(
        &self,
        owner_id: &str,
    ) -> Pin<Box<dyn Future<Output = Result<TierInfo>> + Send + '_>>;
}
Expand description

Backend trait for tier resolution. Object-safe.

The app implements this with its own storage/logic — the framework provides the trait, wrapper, middleware, and guards.

Required Methods§

Source

fn resolve( &self, owner_id: &str, ) -> Pin<Box<dyn Future<Output = Result<TierInfo>> + Send + '_>>

Resolve tier information for the given owner.

§Errors

Implementation-defined. Errors are surfaced by TierLayer as HTTP error responses.

Implementors§