pub struct AuthContext {
pub method: AuthMethod,
pub scope: Option<String>,
pub can_write: bool,
pub run_only: bool,
}Expand description
The resolved authentication context after verifying credentials.
Fields§
§method: AuthMethodThe authentication method used.
scope: Option<String>Optional scope for policy-based access (set when using tokens).
can_write: boolWhether this context allows write operations.
run_only: boolWhen true, secrets can only be injected via run — get, env, export are blocked.
Implementations§
Source§impl AuthContext
impl AuthContext
pub fn master_passphrase() -> Self
pub fn master_keyfile() -> Self
pub fn from_token(session_id: String, scope: String, run_only: bool) -> Self
pub fn actor_name(&self) -> String
Trait Implementations§
Source§impl Clone for AuthContext
impl Clone for AuthContext
Source§fn clone(&self) -> AuthContext
fn clone(&self) -> AuthContext
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for AuthContext
impl RefUnwindSafe for AuthContext
impl Send for AuthContext
impl Sync for AuthContext
impl Unpin for AuthContext
impl UnsafeUnpin for AuthContext
impl UnwindSafe for AuthContext
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