Struct gcp_bigquery_client::project::ProjectApi
source · pub struct ProjectApi { /* private fields */ }
Expand description
A project API handler.
Implementations§
source§impl ProjectApi
impl ProjectApi
sourcepub async fn get_service_account(
&self,
project_id: &str
) -> Result<GetServiceAccountResponse, BQError>
pub async fn get_service_account( &self, project_id: &str ) -> Result<GetServiceAccountResponse, BQError>
RPC to get the service account for a project used for interactions with Google Cloud KMS.
§Arguments
project_id
- ID of the project
sourcepub async fn list(&self, options: GetOptions) -> Result<ProjectList, BQError>
pub async fn list(&self, options: GetOptions) -> Result<ProjectList, BQError>
RPC to list projects to which the user has been granted any project role.
Users of this method are encouraged to consider the Resource Manager API, which provides the underlying data for this method and has more capabilities.
§Arguments
options
- Get options.
Trait Implementations§
source§impl Clone for ProjectApi
impl Clone for ProjectApi
source§fn clone(&self) -> ProjectApi
fn clone(&self) -> ProjectApi
Returns a copy 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 Freeze for ProjectApi
impl !RefUnwindSafe for ProjectApi
impl Send for ProjectApi
impl Sync for ProjectApi
impl Unpin for ProjectApi
impl !UnwindSafe for ProjectApi
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