//! Authentication validator trait for Bolt servers.
usecrate::error::BoltError;usecrate::server::AuthCredentials;/// Validates authentication credentials during the LOGON phase.
#[async_trait::async_trait]pubtraitAuthValidator: Send + Sync + 'static {/// Validate the given credentials.
/// Return `Ok(())` to accept, or `Err(BoltError)` to reject.
async fnvalidate(&self, credentials:&AuthCredentials)->Result<(), BoltError>;}