pub struct ResolvedCredential {
pub connection_id: String,
pub handle_id: String,
pub scopes: BTreeSet<String>,
pub material: TokenMaterial,
}Expand description
What resolution hands to the connector — the host’s HTTP/tool-call
boundary — and never to tool code: the decrypted credential plus the
metadata of the resolution it came from. Redacted in Debug; no
Serialize impl, because nothing about a resolved credential is
evidence — the CredentialUse event is.
Fields§
§connection_id: StringThe connection the credential came from.
handle_id: StringThe handle that resolved.
scopes: BTreeSet<String>The handle’s narrowed scope set (the ceiling this resolution was checked against).
material: TokenMaterialThe decrypted token material. The connector injects it into the outbound request; tool code never sees this struct.
Trait Implementations§
Source§impl Clone for ResolvedCredential
impl Clone for ResolvedCredential
Auto 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