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§
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
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.