elemental-core 0.1.0

Core library for Elemental, providing common utilities and abstractions used across the project.
Documentation
1
2
3
4
5
6
7
8
9
use crate::auth::credential::UserCredential;
use anyhow::Result;

pub trait Authorizer {
    fn authorize(&self) -> impl Future<Output = Result<UserCredential>>;
    fn name() -> &'static str {
        "Authorizer"
    }
}