Skip to main content

ProjectionRule

Trait ProjectionRule 

Source
pub trait ProjectionRule<E>: Send + Sync {
    type Projected;

    // Required method
    fn project(
        &self,
        scope: &ResolvedScope,
        entity: &E,
    ) -> Option<Self::Projected>;
}
Expand description

Authorized projection boundary. None means the entity must not be delivered.

Required Associated Types§

Required Methods§

Source

fn project(&self, scope: &ResolvedScope, entity: &E) -> Option<Self::Projected>

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§