#[non_exhaustive]pub struct CreateServiceAccountKeyRequest {
pub name: String,
pub private_key_type: ServiceAccountPrivateKeyType,
pub key_algorithm: ServiceAccountKeyAlgorithm,
/* private fields */
}Expand description
The service account key create 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 in the following format:
projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}.
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.
private_key_type: ServiceAccountPrivateKeyTypeThe output format of the private key. The default value is
TYPE_GOOGLE_CREDENTIALS_FILE, which is the Google Credentials File
format.
key_algorithm: ServiceAccountKeyAlgorithmWhich type of key and algorithm to use for the key. The default is currently a 2K RSA key. However this may change in the future.
Implementations§
Source§impl CreateServiceAccountKeyRequest
impl CreateServiceAccountKeyRequest
pub fn new() -> Self
Sourcepub fn set_private_key_type<T: Into<ServiceAccountPrivateKeyType>>(
self,
v: T,
) -> Self
pub fn set_private_key_type<T: Into<ServiceAccountPrivateKeyType>>( self, v: T, ) -> Self
Sets the value of private_key_type.
Sourcepub fn set_key_algorithm<T: Into<ServiceAccountKeyAlgorithm>>(
self,
v: T,
) -> Self
pub fn set_key_algorithm<T: Into<ServiceAccountKeyAlgorithm>>( self, v: T, ) -> Self
Sets the value of key_algorithm.
Trait Implementations§
Source§impl Clone for CreateServiceAccountKeyRequest
impl Clone for CreateServiceAccountKeyRequest
Source§fn clone(&self) -> CreateServiceAccountKeyRequest
fn clone(&self) -> CreateServiceAccountKeyRequest
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 Default for CreateServiceAccountKeyRequest
impl Default for CreateServiceAccountKeyRequest
Source§fn default() -> CreateServiceAccountKeyRequest
fn default() -> CreateServiceAccountKeyRequest
Returns the “default value” for a type. Read more
Source§impl PartialEq for CreateServiceAccountKeyRequest
impl PartialEq for CreateServiceAccountKeyRequest
Source§fn eq(&self, other: &CreateServiceAccountKeyRequest) -> bool
fn eq(&self, other: &CreateServiceAccountKeyRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CreateServiceAccountKeyRequest
Auto Trait Implementations§
impl Freeze for CreateServiceAccountKeyRequest
impl RefUnwindSafe for CreateServiceAccountKeyRequest
impl Send for CreateServiceAccountKeyRequest
impl Sync for CreateServiceAccountKeyRequest
impl Unpin for CreateServiceAccountKeyRequest
impl UnwindSafe for CreateServiceAccountKeyRequest
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