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> 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