Skip to main content

AttributeExtractor

Trait AttributeExtractor 

Source
pub trait AttributeExtractor {
    // Required method
    fn extract(&self, bag: &mut AttributeBag);
}
Expand description

Source of attributes. Implementors drop keys into the bag under a consistent namespace prefix:

  • cpex-core SecurityExtension.subjectsubject.*, role.*, perm.*
  • cpex-core SecurityExtension.clientclient.*
  • cpex-core DelegationExtensiondelegation.*, delegated
  • Route args → args.*
  • Session context → session.*

Implementations for the cpex-core extensions live in apl-cmf, not here.

Required Methods§

Source

fn extract(&self, bag: &mut AttributeBag)

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§