AuthenticatedProvider

Trait AuthenticatedProvider 

Source
pub trait AuthenticatedProvider {
    type Error: Error + Send + Sync + 'static;

    // Required method
    fn list_resources_authenticated(
        &self,
        resource_type: &str,
        context: &AuthenticatedRequestContext,
    ) -> impl Future<Output = Result<Vec<Resource>, Self::Error>> + Send;
}
Expand description

Type-safe authentication traits for providers

Required Associated Types§

Source

type Error: Error + Send + Sync + 'static

Error type returned by authenticated operations

Required Methods§

Source

fn list_resources_authenticated( &self, resource_type: &str, context: &AuthenticatedRequestContext, ) -> impl Future<Output = Result<Vec<Resource>, Self::Error>> + Send

List resources with authenticated context (compile-time guaranteed)

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§