#[non_exhaustive]pub struct GetServiceAccountKeyRequest {
pub name: String,
pub public_key_type: ServiceAccountPublicKeyType,
/* private fields */
}Expand description
The service account key get by id request.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringRequired. The resource name of the service account key in the following format:
projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}.
Using - as a wildcard for the PROJECT_ID will infer the project from
the account. The ACCOUNT value can be the email address or the
unique_id of the service account.
public_key_type: ServiceAccountPublicKeyTypeOptional. The output format of the public key. The default is TYPE_NONE, which
means that the public key is not returned.
Implementations§
Source§impl GetServiceAccountKeyRequest
impl GetServiceAccountKeyRequest
pub fn new() -> Self
Sourcepub fn set_public_key_type<T: Into<ServiceAccountPublicKeyType>>(
self,
v: T,
) -> Self
pub fn set_public_key_type<T: Into<ServiceAccountPublicKeyType>>( self, v: T, ) -> Self
Sets the value of public_key_type.
Trait Implementations§
Source§impl Clone for GetServiceAccountKeyRequest
impl Clone for GetServiceAccountKeyRequest
Source§fn clone(&self) -> GetServiceAccountKeyRequest
fn clone(&self) -> GetServiceAccountKeyRequest
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 moreSource§impl Debug for GetServiceAccountKeyRequest
impl Debug for GetServiceAccountKeyRequest
Source§impl Default for GetServiceAccountKeyRequest
impl Default for GetServiceAccountKeyRequest
Source§fn default() -> GetServiceAccountKeyRequest
fn default() -> GetServiceAccountKeyRequest
Returns the “default value” for a type. Read more
impl StructuralPartialEq for GetServiceAccountKeyRequest
Auto Trait Implementations§
impl Freeze for GetServiceAccountKeyRequest
impl RefUnwindSafe for GetServiceAccountKeyRequest
impl Send for GetServiceAccountKeyRequest
impl Sync for GetServiceAccountKeyRequest
impl Unpin for GetServiceAccountKeyRequest
impl UnwindSafe for GetServiceAccountKeyRequest
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