pub trait AuthMetadata: Send + Sync {
// Required methods
fn get_auth_entity(&self) -> String;
fn get_auth_type(&self) -> AuthType;
// Provided methods
fn requires_auth(&self) -> bool { ... }
fn get_auth_config(&self) -> HashMap<String, Value> { ... }
}Expand description
Authentication metadata trait for tools
Required Methods§
Sourcefn get_auth_entity(&self) -> String
fn get_auth_entity(&self) -> String
Get the auth entity identifier (e.g., “google”, “twitter”, “api_key_service”)
Sourcefn get_auth_type(&self) -> AuthType
fn get_auth_type(&self) -> AuthType
Get the authentication type and configuration
Provided Methods§
Sourcefn requires_auth(&self) -> bool
fn requires_auth(&self) -> bool
Check if authentication is required for this tool
Sourcefn get_auth_config(&self) -> HashMap<String, Value>
fn get_auth_config(&self) -> HashMap<String, Value>
Get additional authentication configuration