//! Authentication provider trait.
usecrate::Result;useasync_trait::async_trait;/// Trait for authentication providers.
////// Implementors of this trait can provide authentication credentials
/// for ArcGIS API requests.
#[async_trait]pubtraitAuthProvider: Send + Sync {/// Returns the authentication token or API key to use for requests.
async fnget_token(&self)->Result<String>;/// Returns whether this provider requires a token parameter.
fnrequires_token_param(&self)->bool{true}}