Trait authzen::AuthorizationContext
source · pub trait AuthorizationContext<DM, SC, TC> {
type Context<'a>: Send + Sync
where Self: 'a;
type Subject<'a>: Send + Sync
where Self: 'a;
// Required methods
fn context(&self) -> Self::Context<'_>;
fn subject(&self) -> Self::Subject<'_>;
fn decision_maker(&self) -> &DM;
fn storage_client(&self) -> &SC;
fn transaction_cache(&self) -> &TC;
}Expand description
Wraps all components of an action requiring authorization which can be expected to be carried around in an application context.