Skip to main content

MutatePermissions

Trait MutatePermissions 

Source
pub trait MutatePermissions {
    // Required methods
    fn create() -> Self;
    fn update() -> Self;
    fn delete() -> Self;
}
Expand description

Trait for defining mutation permissions.

Implement this trait to define which roles can create, update, or delete entities.

Required Methods§

Source

fn create() -> Self

Permission for creating entities.

Source

fn update() -> Self

Permission for updating entities.

Source

fn delete() -> Self

Permission for deleting entities.

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.

Implementors§