/// Constructs the first client message in the SCRAM handshake.
Constructs the first client message in the SCRAM handshake.
Constructs the first client message in the SCRAM handshake .
fn build_client_first(
        &self,
        credential: &Credential,
        include_db: bool,
        server_api: Option<&ServerApi>,
    ) -> Result<ClientFirst> {
        let info = self.client_auth_info(credential)?;
        Ok(ClientFirst::new(
            info.source,
            info.username,
            include_db,
            server_api.cloned(),
        ))
    }
fn build_client_first ( & self , credential : & Credential , include_db : bool , server_api : Option < & ServerApi > , ) -> Result < ClientFirst > { let info = self . client_auth_info ( credential ) ? ; Ok ( ClientFirst :: new ( info . source , info . username , include_db , server_api . cloned ( ) , ) ) }
Constructs the first client message in the SCRAM handshake.
Constructs the first client message in the SCRAM handshake .
&self
credential
&Credential
include_db
bool
server_api
Option<&ServerApi>