Skip to main content

HasPolicyId

Trait HasPolicyId 

Source
pub trait HasPolicyId {
    type Id: PolicyId;

    // Required method
    fn id(&self) -> Self::Id;
}
Expand description

Trait for policy elements that have a strongly-typed policy identifier.

Required Associated Types§

Required Methods§

Source

fn id(&self) -> Self::Id

Implementors§

Source§

impl HasPolicyId for User

Source§

type Id = IdType<NonZero<u16>, UserTag>