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 async fn build_from_authenticator( &self, auth: Arc<dyn Authenticator>, ) -> Result<Client, BQError>
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> 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