#[non_exhaustive]pub struct CreateServiceAccountRequest {
pub name: String,
pub account_id: String,
pub service_account: Option<ServiceAccount>,
/* private fields */
}Expand description
The service account 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 project associated with the service
accounts, such as projects/my-project-123.
account_id: StringRequired. The account id that is used to generate the service account
email address and a stable unique id. It is unique within a project,
must be 6-30 characters long, and match the regular expression
[a-z]([-a-z0-9]*[a-z0-9]) to comply with RFC1035.
service_account: Option<ServiceAccount>The ServiceAccount resource to
create. Currently, only the following values are user assignable:
display_name and description.
Implementations§
Source§impl CreateServiceAccountRequest
impl CreateServiceAccountRequest
pub fn new() -> Self
Sourcepub fn set_account_id<T: Into<String>>(self, v: T) -> Self
pub fn set_account_id<T: Into<String>>(self, v: T) -> Self
Sets the value of account_id.
Sourcepub fn set_service_account<T>(self, v: T) -> Selfwhere
T: Into<ServiceAccount>,
pub fn set_service_account<T>(self, v: T) -> Selfwhere
T: Into<ServiceAccount>,
Sets the value of service_account.
Sourcepub fn set_or_clear_service_account<T>(self, v: Option<T>) -> Selfwhere
T: Into<ServiceAccount>,
pub fn set_or_clear_service_account<T>(self, v: Option<T>) -> Selfwhere
T: Into<ServiceAccount>,
Sets or clears the value of service_account.
Trait Implementations§
Source§impl Clone for CreateServiceAccountRequest
impl Clone for CreateServiceAccountRequest
Source§fn clone(&self) -> CreateServiceAccountRequest
fn clone(&self) -> CreateServiceAccountRequest
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 CreateServiceAccountRequest
impl Debug for CreateServiceAccountRequest
Source§impl Default for CreateServiceAccountRequest
impl Default for CreateServiceAccountRequest
Source§fn default() -> CreateServiceAccountRequest
fn default() -> CreateServiceAccountRequest
Returns the “default value” for a type. Read more
impl StructuralPartialEq for CreateServiceAccountRequest
Auto Trait Implementations§
impl !Freeze for CreateServiceAccountRequest
impl RefUnwindSafe for CreateServiceAccountRequest
impl Send for CreateServiceAccountRequest
impl Sync for CreateServiceAccountRequest
impl Unpin for CreateServiceAccountRequest
impl UnwindSafe for CreateServiceAccountRequest
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