Skip to main content

RoleBearingManagedObject

Trait RoleBearingManagedObject 

Source
pub trait RoleBearingManagedObject: ManagedObject {
    type Role;

    // Required methods
    fn managed_role(&self) -> &Self::Role;
    fn replace_managed_role(&mut self, role: Self::Role) -> Self::Role;
}
Expand description

Shared language-neutral arena, node, edge, and retention building blocks. A managed object carrying caller-owned role evidence outside graph policy.

Required Associated Types§

Source

type Role

Role label type chosen by the object owner.

Required Methods§

Source

fn managed_role(&self) -> &Self::Role

Borrows the current audit role.

Source

fn replace_managed_role(&mut self, role: Self::Role) -> Self::Role

Replaces audit role evidence without changing the managed graph.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§