pub struct GoogleApiClient<B, C>{ /* private fields */ }
Implementations§
Source§impl<B, C> GoogleApiClient<B, C>
impl<B, C> GoogleApiClient<B, C>
Source§impl<C> GoogleApiClient<GoogleApiClientBuilderFunction<C>, C>
impl<C> GoogleApiClient<GoogleApiClientBuilderFunction<C>, C>
pub async fn from_function<S: AsRef<str>>( builder_fn: fn(GoogleAuthMiddlewareService<Channel>) -> C, google_api_url: S, cloud_resource_prefix_meta: Option<String>, ) -> Result<Self>
pub async fn from_function_with_scopes<S: AsRef<str>>( builder_fn: fn(GoogleAuthMiddlewareService<Channel>) -> C, google_api_url: S, cloud_resource_prefix_meta: Option<String>, token_scopes: Vec<String>, ) -> Result<Self>
pub async fn from_function_with_token_source<S: AsRef<str>>( builder_fn: fn(GoogleAuthMiddlewareService<Channel>) -> C, google_api_url: S, cloud_resource_prefix_meta: Option<String>, token_scopes: Vec<String>, token_source_type: TokenSourceType, ) -> Result<Self>
Trait Implementations§
Source§impl<B, C> Clone for GoogleApiClient<B, C>
impl<B, C> Clone for GoogleApiClient<B, C>
Source§fn clone(&self) -> GoogleApiClient<B, C>
fn clone(&self) -> GoogleApiClient<B, C>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<B, C> Freeze for GoogleApiClient<B, C>where
B: Freeze,
impl<B, C> !RefUnwindSafe for GoogleApiClient<B, C>
impl<B, C> Send for GoogleApiClient<B, C>where
B: Send,
impl<B, C> Sync for GoogleApiClient<B, C>
impl<B, C> Unpin for GoogleApiClient<B, C>
impl<B, C> !UnwindSafe for GoogleApiClient<B, C>
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§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