GatewayApi

Trait GatewayApi 

Source
pub trait GatewayApi: Api {
    // Provided methods
    fn get_all_gateway_licenses(
        &self,
    ) -> impl Future<Output = Result<View, Error>> + Send + Sync { ... }
    fn get_all_gateway_license(
        &self,
        id: u32,
    ) -> impl Future<Output = Result<ViewOne, Error>> + Send + Sync { ... }
    fn verify_gateway_license(
        &self,
        license_key: &str,
    ) -> impl Future<Output = Result<VerifyResponse, Error>> + Send + Sync { ... }
    fn regenerate_gateway_license(
        &self,
        id: u32,
    ) -> impl Future<Output = Result<RegenerateResponse, Error>> + Send + Sync { ... }
}
Expand description

Extension API for interacting with the Freedom Gateway licensing architecture

Provided Methods§

Source

fn get_all_gateway_licenses( &self, ) -> impl Future<Output = Result<View, Error>> + Send + Sync

Source

fn get_all_gateway_license( &self, id: u32, ) -> impl Future<Output = Result<ViewOne, Error>> + Send + Sync

Source

fn verify_gateway_license( &self, license_key: &str, ) -> impl Future<Output = Result<VerifyResponse, Error>> + Send + Sync

Source

fn regenerate_gateway_license( &self, id: u32, ) -> impl Future<Output = Result<RegenerateResponse, Error>> + Send + Sync

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.

Implementors§

Source§

impl<T> GatewayApi for T
where T: Api,