Struct gcp_bigquery_client::Client[][src]

pub struct Client { /* fields omitted */ }

An asynchronous BigQuery client.

Implementations

impl Client[src]

pub async fn from_service_account_key_file(sa_key_file: &str) -> Self[src]

Constructs a new BigQuery client.

Argument

  • sa_key_file - A GCP Service Account Key file.

pub async fn from_service_account_key(
    sa_key: ServiceAccountKey,
    readonly: bool
) -> Result<Self, BQError>
[src]

Constructs a new BigQuery client from a ServiceAccountKey.

Argument

  • sa_key - A GCP Service Account Key yup-oauth2 object.
  • readonly - A boolean setting whether the acquired token scope should be readonly.

pub fn dataset(&self) -> &DatasetApi[src]

Returns a dataset API handler.

pub fn table(&self) -> &TableApi[src]

Returns a table API handler.

pub fn job(&self) -> &JobApi[src]

Returns a job API handler.

pub fn tabledata(&self) -> &TableDataApi[src]

Returns a table data API handler.

pub fn routine(&self) -> &RoutineApi[src]

Returns a routine API handler.

pub fn model(&self) -> &ModelApi[src]

Returns a model API handler.

pub fn project(&self) -> &ProjectApi[src]

Returns a project API handler.

Auto Trait Implementations

impl !RefUnwindSafe for Client

impl Send for Client

impl Sync for Client

impl Unpin for Client

impl !UnwindSafe for Client

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.