pub trait AuthorizationService<S: Subject>:
Send
+ Sync
+ Sized
+ Clone
+ 'static
+ Send {
// Required method
fn authorize(
&self,
subject: &S,
relation: &str,
object: &str,
) -> impl Future<Output = Result<()>> + Send;
}
Expand description
Authorization service
Required Methods§
Validates if the subject is allowed to perform the relation on the object
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.