Struct gcp_bigquery_client::client_builder::ClientBuilder
source · pub struct ClientBuilder { /* private fields */ }
Implementations§
source§impl ClientBuilder
impl ClientBuilder
pub fn new() -> Self
pub fn with_v2_base_url(&mut self, base_url: String) -> &mut Self
pub fn with_auth_base_url(&mut self, base_url: String) -> &mut Self
pub fn build_from_authenticator(&self, auth: Arc<dyn Authenticator>) -> Client
pub async fn build_from_service_account_key( &self, sa_key: ServiceAccountKey, readonly: bool ) -> Result<Client, BQError>
pub async fn build_from_service_account_key_file( &self, sa_key_file: &str ) -> Result<Client, BQError>
pub async fn build_with_workload_identity( &self, readonly: bool ) -> Result<Client, BQError>
pub async fn build_from_installed_flow_authenticator<S: AsRef<[u8]>, P: Into<PathBuf>>( &self, secret: S, persistant_file_path: P ) -> Result<Client, BQError>
pub async fn build_from_installed_flow_authenticator_from_secret_file<P: Into<PathBuf>>( &self, secret_file: &str, persistant_file_path: P ) -> Result<Client, BQError>
pub async fn build_from_application_default_credentials( &self ) -> Result<Client, BQError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ClientBuilder
impl RefUnwindSafe for ClientBuilder
impl Send for ClientBuilder
impl Sync for ClientBuilder
impl Unpin for ClientBuilder
impl UnwindSafe for ClientBuilder
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> 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> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more