pub struct SecretRequest {
pub key: String,
pub kind: Option<SecretKind>,
pub resource: Option<String>,
pub scopes: Vec<String>,
pub hint: Option<String>,
}Expand description
What a component is asking for. Everything past key is context the
host uses to decide, to prompt, and to record in the audit trail.
Fields§
§key: StringStore lookup key.
kind: Option<SecretKind>Expected shape, when the component knows it — absent for a bridge
that has not yet seen its first challenge. A provisioning hint, NOT
a retrieval filter: it tells the host what to ask a human for, and
does not constrain what get-secret returns. A value stored as
“std:opaque” is still served to a component expecting “std:oauth2”,
because that is the same string in the same header; the component
inspects secret.kind and decides for itself.
resource: Option<String>The resource the credential will be used against (a host, a URL, an account id). Advisory context for the human being prompted.
scopes: Vec<String>Requested scopes, for credentials that carry them.
hint: Option<String>Why the component wants it, in the component’s own words. Shown to the human; never trusted as authorization.
Trait Implementations§
Source§impl Clone for SecretRequest
impl Clone for SecretRequest
Source§fn clone(&self) -> SecretRequest
fn clone(&self) -> SecretRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl ComponentType for SecretRequest
Source§impl Debug for SecretRequest
impl Debug for SecretRequest
impl Lift for SecretRequest
impl Lower for SecretRequest
Auto Trait Implementations§
impl Freeze for SecretRequest
impl RefUnwindSafe for SecretRequest
impl Send for SecretRequest
impl Sync for SecretRequest
impl Unpin for SecretRequest
impl UnsafeUnpin for SecretRequest
impl UnwindSafe for SecretRequest
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more