Trait CedarEntityId

Source
pub trait CedarEntityId: CedarEntity {
    type Id<'a>: CedarIdentifiable
       where Self: 'a;

    // Required method
    fn id(&self) -> impl Borrow<Self::Id<'_>>;
}

Required Associated Types§

Source

type Id<'a>: CedarIdentifiable where Self: 'a

Required Methods§

Source

fn id(&self) -> impl Borrow<Self::Id<'_>>

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.

Implementations on Foreign Types§

Source§

impl CedarEntityId for MfaTotpCredential

Source§

type Id<'a> = Id<MfaTotpCredential>

Source§

fn id(&self) -> &Self::Id<'_>

Source§

impl CedarEntityId for MfaWebauthnCredential

Source§

type Id<'a> = Id<MfaWebauthnCredential>

Source§

fn id(&self) -> &Self::Id<'_>

Source§

impl CedarEntityId for Organization

Source§

type Id<'a> = Id<Organization>

Source§

fn id(&self) -> &Self::Id<'_>

Source§

impl CedarEntityId for OrganizationInvitation

Source§

type Id<'a> = Id<OrganizationInvitation>

Source§

fn id(&self) -> &Self::Id<'_>

Source§

impl CedarEntityId for Policy

Source§

type Id<'a> = Id<Policy>

Source§

fn id(&self) -> &Self::Id<'_>

Source§

impl CedarEntityId for Project

Source§

type Id<'a> = Id<Project>

Source§

fn id(&self) -> &Self::Id<'_>

Source§

impl CedarEntityId for Role

Source§

type Id<'a> = Id<Role>

Source§

fn id(&self) -> &Self::Id<'_>

Source§

impl CedarEntityId for ServiceAccount

Source§

type Id<'a> = Id<ServiceAccount>

Source§

fn id(&self) -> &Self::Id<'_>

Source§

impl CedarEntityId for ServiceAccountToken

Source§

type Id<'a> = Id<ServiceAccountToken>

Source§

fn id(&self) -> &Self::Id<'_>

Source§

impl CedarEntityId for MagicLinkRequest

Source§

type Id<'a> = Id<MagicLinkRequest>

Source§

fn id(&self) -> &Self::Id<'_>

Source§

impl CedarEntityId for UserSessionRequest

Source§

type Id<'a> = Id<UserSessionRequest>

Source§

fn id(&self) -> &Self::Id<'_>

Source§

impl CedarEntityId for UserSessionToken

Source§

type Id<'a> = Id<UserSessionToken>

Source§

fn id(&self) -> &Self::Id<'_>

Source§

impl CedarEntityId for NewUserEmailRequest

Source§

type Id<'a> = Id<NewUserEmailRequest>

Source§

fn id(&self) -> &Self::Id<'_>

Source§

impl CedarEntityId for User

Source§

type Id<'a> = Id<User>

Source§

fn id(&self) -> &Self::Id<'_>

Implementors§