pub struct Client { /* private fields */ }
Expand description
An asynchronous BigQuery client.
Implementations§
Source§impl Client
impl Client
pub async fn from_authenticator( auth: Arc<dyn Authenticator>, ) -> Result<Self, BQError>
Sourcepub async fn from_service_account_key_file(
sa_key_file: &str,
) -> Result<Self, BQError>
pub async fn from_service_account_key_file( sa_key_file: &str, ) -> Result<Self, BQError>
Sourcepub async fn from_service_account_key(
sa_key: ServiceAccountKey,
readonly: bool,
) -> Result<Self, BQError>
pub async fn from_service_account_key( sa_key: ServiceAccountKey, readonly: bool, ) -> Result<Self, BQError>
Constructs a new BigQuery client from a ServiceAccountKey
.
§Argument
sa_key
- A GCP Service Account Keyyup-oauth2
object.readonly
- A boolean setting whether the acquired token scope should be readonly.
pub async fn with_workload_identity(readonly: bool) -> Result<Self, BQError>
pub async fn from_installed_flow_authenticator<S: AsRef<[u8]>, P: Into<PathBuf>>( secret: S, persistant_file_path: P, ) -> Result<Self, BQError>
pub async fn from_installed_flow_authenticator_from_secret_file<P: Into<PathBuf>>( secret_file: &str, persistant_file_path: P, ) -> Result<Self, BQError>
pub async fn from_application_default_credentials() -> Result<Self, BQError>
Sourcepub fn dataset(&self) -> &DatasetApi
pub fn dataset(&self) -> &DatasetApi
Returns a dataset API handler.
Sourcepub fn tabledata(&self) -> &TableDataApi
pub fn tabledata(&self) -> &TableDataApi
Returns a table data API handler.
Sourcepub fn routine(&self) -> &RoutineApi
pub fn routine(&self) -> &RoutineApi
Returns a routine API handler.
Sourcepub fn project(&self) -> &ProjectApi
pub fn project(&self) -> &ProjectApi
Returns a project API handler.
Sourcepub fn storage(&self) -> &StorageApi
pub fn storage(&self) -> &StorageApi
Returns a storage API handler.
Sourcepub fn storage_mut(&mut self) -> &mut StorageApi
pub fn storage_mut(&mut self) -> &mut StorageApi
Returns a mutable storage API handler.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Client
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request