sqlload 0.70.0

SQL data loading tooling.
1
2
3
4
5
6
7
8
9
//! Google's answers, read the way every Google API writes its errors.

use crate::bigquery_api::_helpers::requests::google_response;
use crate::http::errors::ApiError;

/// `response`, or an [`ApiError`] with the reason and message of Google's error body (a refusal for a rate limit counts as throttling).
pub async fn google_answer(response: reqwest::Response) -> Result<reqwest::Response, ApiError> {
    google_response(response).await
}