pub struct AuthConfig {
pub credential_key: String,
pub auth_scheme: AuthScheme,
pub credential_type: CredentialType,
}Expand description
Per-tool declaration of authentication requirements.
Returned by AgentTool::auth_config() to
declare that a tool needs credentials resolved before execution.
Fields§
§credential_key: StringKey to look up in the credential store.
auth_scheme: AuthSchemeHow to attach the credential to the outbound request.
credential_type: CredentialTypeExpected credential type (for mismatch checking).
Trait Implementations§
Source§impl Clone for AuthConfig
impl Clone for AuthConfig
Source§fn clone(&self) -> AuthConfig
fn clone(&self) -> AuthConfig
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 AuthConfig
impl RefUnwindSafe for AuthConfig
impl Send for AuthConfig
impl Sync for AuthConfig
impl Unpin for AuthConfig
impl UnsafeUnpin for AuthConfig
impl UnwindSafe for AuthConfig
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