pub trait SubjectMapper: Send + Sync {
// Required method
fn subject(&self, cx: &Context) -> Result<SubjectRef, KeepsakeError>;
}Expand description
Maps a gatekeep request context to the keepsake subject being resolved.
Required Methods§
Sourcefn subject(&self, cx: &Context) -> Result<SubjectRef, KeepsakeError>
fn subject(&self, cx: &Context) -> Result<SubjectRef, KeepsakeError>
Builds the keepsake subject for this request.
§Errors
Returns KeepsakeError when the mapped subject is invalid.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".