pub struct CredentialsSource {
pub backend: Option<String>,
pub refresher: Option<Arc<dyn CredentialRefresher>>,
}Expand description
Which credential backend serves this run.
The profile namespace is deliberately not a field here: it is derived from
the ComponentRef through crate::resolve::profile_key, so a caller
cannot pass a spelling that disagrees with the one the credential was
stored under.
Fields§
§backend: Option<String>Backend name, as act secret --credentials-backend spells it. Never
inferred: there is no mode that picks one for you.
refresher: Option<Arc<dyn CredentialRefresher>>How a credential too close to expiry is renewed before it is served.
None means no renewal: a near-expiry credential is served as it is,
which is what an embedder with no OAuth upstream wants.
Auto Trait Implementations§
impl !RefUnwindSafe for CredentialsSource
impl !UnwindSafe for CredentialsSource
impl Freeze for CredentialsSource
impl Send for CredentialsSource
impl Sync for CredentialsSource
impl Unpin for CredentialsSource
impl UnsafeUnpin for CredentialsSource
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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> ⓘ
Converts
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> ⓘ
Converts
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 moreSource§impl<Source, Target> OctetsInto<Target> for Sourcewhere
Target: OctetsFrom<Source>,
impl<Source, Target> OctetsInto<Target> for Sourcewhere
Target: OctetsFrom<Source>,
type Error = <Target as OctetsFrom<Source>>::Error
Source§fn try_octets_into(
self,
) -> Result<Target, <Source as OctetsInto<Target>>::Error>
fn try_octets_into( self, ) -> Result<Target, <Source as OctetsInto<Target>>::Error>
Performs the conversion.