Skip to main content

AreaPrincipal

Trait AreaPrincipal 

Source
pub trait AreaPrincipal: Send + 'static {
    type Record: 'static;

    const ACCESS: Access;
}
Expand description

An aggregate is its own principal, owning its records; a marker such as sofie-identity’s Permitted names the aggregate that signs in under another access.

Required Associated Constants§

Required Associated Types§

Source

type Record: 'static

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§

Source§

impl AreaPrincipal for Visitor

No one signs in as one, so its Principal is never found.

Source§

const ACCESS: Access = Access::Public

Source§

type Record = Visitor

Source§

impl<T: Aggregate> AreaPrincipal for T

Source§

const ACCESS: Access = Access::Owned

Source§

type Record = T