pub enum ResolvedCredential {
ApiKey(String),
Bearer(String),
OAuth2AccessToken(String),
}Expand description
Minimal secret value delivered to a tool after credential resolution.
Does NOT contain refresh tokens, client secrets, or token endpoints. Tools receive only the secret they need for the authenticated request.
Variants§
ApiKey(String)
A resolved API key.
Bearer(String)
A resolved bearer token.
OAuth2AccessToken(String)
A resolved (possibly refreshed) OAuth2 access token.
Trait Implementations§
Source§impl Clone for ResolvedCredential
impl Clone for ResolvedCredential
Source§fn clone(&self) -> ResolvedCredential
fn clone(&self) -> ResolvedCredential
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 moreAuto Trait Implementations§
impl Freeze for ResolvedCredential
impl RefUnwindSafe for ResolvedCredential
impl Send for ResolvedCredential
impl Sync for ResolvedCredential
impl Unpin for ResolvedCredential
impl UnsafeUnpin for ResolvedCredential
impl UnwindSafe for ResolvedCredential
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