restrepo 0.5.12

A collection of components for building restful webservices with actix-web
Documentation
1
2
3
4
5
6
7
8
9
10
11
use async_trait::async_trait;

use crate::{security::AuthenticationContext, server::ApiErrorV1};

/// Interface for implementing user tracking capability
#[async_trait]
pub trait UserAccessLogger<S, O> {
    type Error: Into<ApiErrorV1>;

    async fn log_access(store: &S, auth_context: &AuthenticationContext) -> Result<O, Self::Error>;
}