pub struct AuthSubject {
pub name: String,
pub groups: Vec<String>,
pub claims: HashMap<String, String>,
}Expand description
Auth-Subject — wird nach erfolgreichem AuthMode::validate an
nachfolgende ACL-Prüfungen (§7.3) gereicht.
Fields§
§name: StringStable Identity (e.g. JWT sub, Bearer-Mapping, mTLS-CN, SASL-User).
groups: Vec<String>Group-Memberships (z.B. JWT groups-Claim).
claims: HashMap<String, String>Free-form Claims (jeder String-Wert).
Implementations§
Source§impl AuthSubject
impl AuthSubject
Sourcepub fn with_group(self, g: impl Into<String>) -> Self
pub fn with_group(self, g: impl Into<String>) -> Self
Fluent-Add Group.
Trait Implementations§
Source§impl Clone for AuthSubject
impl Clone for AuthSubject
Source§fn clone(&self) -> AuthSubject
fn clone(&self) -> AuthSubject
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 AuthSubject
impl Debug for AuthSubject
Source§impl Default for AuthSubject
impl Default for AuthSubject
Source§fn default() -> AuthSubject
fn default() -> AuthSubject
Returns the “default value” for a type. Read more
Source§impl PartialEq for AuthSubject
impl PartialEq for AuthSubject
Source§fn eq(&self, other: &AuthSubject) -> bool
fn eq(&self, other: &AuthSubject) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for AuthSubject
impl StructuralPartialEq for AuthSubject
Auto Trait Implementations§
impl Freeze for AuthSubject
impl RefUnwindSafe for AuthSubject
impl Send for AuthSubject
impl Sync for AuthSubject
impl Unpin for AuthSubject
impl UnsafeUnpin for AuthSubject
impl UnwindSafe for AuthSubject
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