pub struct CreateServiceAccountRequest {
pub username: String,
pub is_admin: Option<bool>,
pub operator: Option<bool>,
pub add_to_deployers: Option<bool>,
}Fields§
§username: String§is_admin: Option<bool>Grant the service account workspace admin. Defaults to false. Cannot be combined with operator=true.
operator: Option<bool>Make the service account an operator. Defaults to true for backward compatibility. Set to false to count as a developer (1 seat) instead of 0.5 seat.
add_to_deployers: Option<bool>Add the service account to the workspace wm_deployers group on creation. Recommended when the account will be used as a CLI sync / CI deploy identity so it can deploy on behalf of other users.
Implementations§
Source§impl CreateServiceAccountRequest
impl CreateServiceAccountRequest
pub fn new(username: String) -> CreateServiceAccountRequest
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 (const: unstable) · 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
Source§impl<'de> Deserialize<'de> for CreateServiceAccountRequest
impl<'de> Deserialize<'de> for CreateServiceAccountRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for CreateServiceAccountRequest
impl PartialEq for CreateServiceAccountRequest
Source§fn eq(&self, other: &CreateServiceAccountRequest) -> bool
fn eq(&self, other: &CreateServiceAccountRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.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 UnsafeUnpin 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