Skip to main content

PluginEndpoint

Type Alias PluginEndpoint 

Source
pub type PluginEndpoint = AsyncAuthEndpoint;
Expand description

Async endpoint contributed by a plugin.

Aliased Type§

pub struct PluginEndpoint {
    pub path: String,
    pub method: Method,
    pub handler: Arc<dyn for<'a> Fn(&'a AuthContext, Request<Vec<u8>>) -> Pin<Box<dyn Future<Output = Result<Response<Vec<u8>>, OpenAuthError>> + Send + 'a>> + Send + Sync>,
    pub options: AuthEndpointOptions,
}

Fields§

§path: String§method: Method§handler: Arc<dyn for<'a> Fn(&'a AuthContext, Request<Vec<u8>>) -> Pin<Box<dyn Future<Output = Result<Response<Vec<u8>>, OpenAuthError>> + Send + 'a>> + Send + Sync>§options: AuthEndpointOptions