pub struct AccessContext {
pub user_approved: bool,
pub authenticated: bool,
pub active_skill: Option<String>,
}Expand description
Context supplied by the caller when requesting access to a
credential. The [SecretsManager] evaluates this against the
credential’s AccessPolicy.
Fields§
§user_approved: boolThe user explicitly approved this specific access.
authenticated: boolThe caller has re-verified the vault password and/or TOTP within this request.
active_skill: Option<String>The name of the skill currently being executed, if any.
Trait Implementations§
Source§impl Clone for AccessContext
impl Clone for AccessContext
Source§fn clone(&self) -> AccessContext
fn clone(&self) -> AccessContext
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 moreSource§impl Debug for AccessContext
impl Debug for AccessContext
Source§impl Default for AccessContext
impl Default for AccessContext
Source§fn default() -> AccessContext
fn default() -> AccessContext
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AccessContext
impl RefUnwindSafe for AccessContext
impl Send for AccessContext
impl Sync for AccessContext
impl Unpin for AccessContext
impl UnsafeUnpin for AccessContext
impl UnwindSafe for AccessContext
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