sqlload 0.29.0

SQL data loading tooling. Pre-release, under development.
1
2
3
4
5
6
7
8
9
10
//! Discover the ingest host.

use crate::http::errors::ApiError;
use crate::streaming_api::_helpers::requests::access;
use crate::streaming_api::models::StreamingClient;

/// The ingest base URL for this account.
pub async fn ingest_host(client: &StreamingClient) -> Result<String, ApiError> {
    Ok(access(client).await?.base)
}