pub enum EntityKind {
Realm,
Client,
ClientScope,
Group,
Role,
User,
Credential,
ProtocolMapper,
AuthFlow,
IdentityProvider,
}Expand description
The kinds of entity the canonical model can represent.
This is the fixed vocabulary the completeness manifests and the volatile section are keyed on.
Variants§
Realm
A realm: the top-level configuration container.
Client
An OAuth/OIDC or SAML client (or “application”).
ClientScope
A reusable bundle of provider configuration (Keycloak client scopes).
Group
A group.
Role
A role.
User
A user account.
Credential
A credential record owned by a user.
ProtocolMapper
A protocol mapper.
AuthFlow
An authentication flow (Keycloak: a flow with execution steps).
IdentityProvider
An external identity provider.
Implementations§
Source§impl EntityKind
impl EntityKind
Sourcepub const fn id_field(self) -> &'static str
pub const fn id_field(self) -> &'static str
The common field that holds this entity’s row identity key.
Used by the completeness verifier to key volatile records. Realm is
identified by its name; every other entity by its id.
Sourcepub const fn identity_key(self) -> &'static str
pub const fn identity_key(self) -> &'static str
The human-facing identity key this entity carries in common.
Trait Implementations§
Source§impl Clone for EntityKind
impl Clone for EntityKind
impl Copy for EntityKind
Source§impl Debug for EntityKind
impl Debug for EntityKind
Source§impl<'de> Deserialize<'de> for EntityKind
impl<'de> Deserialize<'de> for EntityKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for EntityKind
Source§impl Hash for EntityKind
impl Hash for EntityKind
Source§impl Ord for EntityKind
impl Ord for EntityKind
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for EntityKind
impl PartialEq for EntityKind
Source§impl PartialOrd for EntityKind
impl PartialOrd for EntityKind
Source§impl Serialize for EntityKind
impl Serialize for EntityKind
impl StructuralPartialEq for EntityKind
Auto Trait Implementations§
impl Freeze for EntityKind
impl RefUnwindSafe for EntityKind
impl Send for EntityKind
impl Sync for EntityKind
impl Unpin for EntityKind
impl UnsafeUnpin for EntityKind
impl UnwindSafe for EntityKind
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more