pub enum AuthenticatedIdentity {
Credentialless,
CatalogUser {
username: String,
user_id: u64,
created_version: u64,
},
ServicePrincipal {
name: String,
},
}Expand description
The authenticated identity attached to a request (S1D-001).
See the module-level documentation for the mapping to the engine-side
identity (mongreldb_core::auth::Principal).
Variants§
Credentialless
No catalog credentials: embedded mode or a daemon running without catalog auth. Carries no identity; the storage authorization layer applies its no-auth policy.
CatalogUser
A catalog-authenticated user. Pins the immutable identity
(user_id + created_version); grants are re-resolved by the server
at session open so a recreated username cannot inherit stale rights.
Fields
ServicePrincipal
An internal server component (replication, CDC, maintenance) acting without catalog credentials. Never accepted from external adapters.
Trait Implementations§
Source§impl Clone for AuthenticatedIdentity
impl Clone for AuthenticatedIdentity
Source§fn clone(&self) -> AuthenticatedIdentity
fn clone(&self) -> AuthenticatedIdentity
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AuthenticatedIdentity
impl Debug for AuthenticatedIdentity
Source§impl<'de> Deserialize<'de> for AuthenticatedIdentity
impl<'de> Deserialize<'de> for AuthenticatedIdentity
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 AuthenticatedIdentity
Source§impl PartialEq for AuthenticatedIdentity
impl PartialEq for AuthenticatedIdentity
Source§impl Serialize for AuthenticatedIdentity
impl Serialize for AuthenticatedIdentity
impl StructuralPartialEq for AuthenticatedIdentity
Auto Trait Implementations§
impl Freeze for AuthenticatedIdentity
impl RefUnwindSafe for AuthenticatedIdentity
impl Send for AuthenticatedIdentity
impl Sync for AuthenticatedIdentity
impl Unpin for AuthenticatedIdentity
impl UnsafeUnpin for AuthenticatedIdentity
impl UnwindSafe for AuthenticatedIdentity
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