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§
Required Methods§
Sourcefn managed_role(&self) -> &Self::Role
fn managed_role(&self) -> &Self::Role
Borrows the current audit role.
Sourcefn replace_managed_role(&mut self, role: Self::Role) -> Self::Role
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".