pub struct AccessRequest<'a> {
pub coordinate: &'a Coordinate,
pub project: Option<&'a str>,
pub sensitivity: Sensitivity,
pub revealable: bool,
pub operation: Operation,
pub surface: Surface,
pub origin: Origin,
}Expand description
A request to act on a secret. The environment is read from the coordinate.
Fields§
§coordinate: &'a CoordinateThe (resolved) coordinate being acted on.
project: Option<&'a str>The owning project, or None for the global vault.
sensitivity: SensitivityThe secret’s sensitivity.
revealable: boolWhether the secret is opted into reveal (the §3.1 “revealable” flag).
This MUST be sourced from the stored secret, never from caller
intent — otherwise a face could fabricate revealable: true and defeat
I11. It is persisted on crate::SecretRecord (L9) and read back via
crate::SecretRecord::revealable, like sensitivity. The CLI reveal
path leaves it false (it never consults the MCP-only opt-in); the FFI
reveal path populates it from the record.
operation: OperationWhat the caller wants to do.
surface: SurfaceWhich face is asking.
origin: OriginWho initiated it.
Trait Implementations§
Source§impl<'a> Clone for AccessRequest<'a>
impl<'a> Clone for AccessRequest<'a>
Source§fn clone(&self) -> AccessRequest<'a>
fn clone(&self) -> AccessRequest<'a>
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 moreAuto Trait Implementations§
impl<'a> Freeze for AccessRequest<'a>
impl<'a> RefUnwindSafe for AccessRequest<'a>
impl<'a> Send for AccessRequest<'a>
impl<'a> Sync for AccessRequest<'a>
impl<'a> Unpin for AccessRequest<'a>
impl<'a> UnsafeUnpin for AccessRequest<'a>
impl<'a> UnwindSafe for AccessRequest<'a>
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