Skip to main content

SensingScopeAuthority

Trait SensingScopeAuthority 

Source
pub trait SensingScopeAuthority {
    // Required method
    fn verify_scope(
        &self,
        grant: &ConsentGrant,
        grant_digest: &[u8; 32],
        request: &SensingRequest,
    ) -> Result<(), AuthorizationError>;
}

Required Methods§

Source

fn verify_scope( &self, grant: &ConsentGrant, grant_digest: &[u8; 32], request: &SensingRequest, ) -> Result<(), AuthorizationError>

Verify that a signed scope bound to this grant’s digest permits this exact source, modality, action, and purpose. Mapping a health-category bit alone to sensor permission is insufficient.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§