pub enum SecretAccessError {
NotConfigured,
NotFound(String),
NotGranted(String),
FieldNotFound {
secret: String,
field: String,
},
Backend(String),
}Expand description
Error surfaced to a task body by the Context secret
accessor.
Variants§
NotConfigured
No resolver was configured on this execution scope. On the embedded /
in-process path the host/runner wires one in; when it is absent,
context.secret(...) fails clearly instead of silently returning empty.
NotFound(String)
The named secret does not exist (or is not visible to this tenant).
NotGranted(String)
The execution scope’s grant does not include this secret name
(CLOACI-I-0133 / T-0860, D-3). The resolver denied it before any
decrypt; add the name to the constructor’s secrets grant to allow it.
FieldNotFound
The secret exists but has no field of that name.
Backend(String)
The backend failed to resolve the secret.
Trait Implementations§
Source§impl Debug for SecretAccessError
impl Debug for SecretAccessError
Source§impl Display for SecretAccessError
impl Display for SecretAccessError
Source§impl Error for SecretAccessError
impl Error for SecretAccessError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for SecretAccessError
impl RefUnwindSafe for SecretAccessError
impl Send for SecretAccessError
impl Sync for SecretAccessError
impl Unpin for SecretAccessError
impl UnsafeUnpin for SecretAccessError
impl UnwindSafe for SecretAccessError
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