/// Parses the response of the `saslStart` command.
Parses the response of the `saslStart` command.
Parses the response of the ` saslStart ` command .
fn parse(response: Document) -> Result<Self> {
        let SaslResponse {
            conversation_id,
            payload,
            done,
        } = SaslResponse::parse("MONGODB-AWS", response)?;
        let ServerFirstPayload {
            server_nonce,
            sts_host,
        } = bson::from_slice(payload.as_slice())
            .map_err(|_| Error::invalid_authentication_response("MONGODB-AWS"))?;
        Ok(Self {
            conversation_id,
            server_nonce,
            sts_host,
            done,
        })
    }
fn parse ( response : Document ) -> Result < Self > { let SaslResponse { conversation_id , payload , done , } = SaslResponse :: parse ( " " , response ) ? ; let ServerFirstPayload { server_nonce , sts_host , } = bson :: from_slice ( payload . as_slice ( ) ) . map_err ( | _ | Error :: invalid_authentication_response ( " " ) ) ? ; Ok ( Self { conversation_id , server_nonce , sts_host , done , } ) }
Parses the response of the `saslStart` command.
Parses the response of the ` saslStart ` command .
response
Document