Expand description
The main module of this crate.
§Example
To build a Client you just need an Authenticator. For example, if you want to use a service account:
#[tokio::main(flavor = "current_thread")]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
// 1. Load the desired secret (here, a service account key)
let sa_key = yup_oauth2::read_service_account_key("clientsecret.json")
.await?;
// 2. Create an Authenticator
let auth = yup_oauth2::ServiceAccountAuthenticator::builder(sa_key)
.build()
.await?;
// 3. Create a Client
let mut client = bigquery_storage::Client::new(auth).await?;
Ok(())
}Structs§
- Client
- The main object of this crate.
- Read
Session - A practical wrapper around a BigQuery Storage read session.
Do not create it manually, use
Client::read_session_builderinstead. - Read
Session Builder - A builder for
ReadSession. When in doubt about what a field does, please refer toCreateReadSessionRequestand the official API documentation. - Table
- A fully qualified BigQuery table. This requires a
project_id, adataset_idand atable_id. Only alphanumerical and underscores are allowed fordataset_idandtable_id.