#[non_exhaustive]pub struct StartEnvironmentRequest {
pub name: String,
pub access_token: String,
pub public_keys: Vec<String>,
/* private fields */
}
Expand description
Request message for StartEnvironment.
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: String
Name of the resource that should be started, for example
users/me/environments/default
or
users/someone@example.com/environments/default
.
access_token: String
The initial access token passed to the environment. If this is present and valid, the environment will be pre-authenticated with gcloud so that the user can run gcloud commands in Cloud Shell without having to log in. This code can be updated later by calling AuthorizeEnvironment.
public_keys: Vec<String>
Public keys that should be added to the environment before it is started.
Implementations§
Source§impl StartEnvironmentRequest
impl StartEnvironmentRequest
pub fn new() -> Self
Sourcepub fn set_access_token<T: Into<String>>(self, v: T) -> Self
pub fn set_access_token<T: Into<String>>(self, v: T) -> Self
Sets the value of access_token.
Sourcepub fn set_public_keys<T, V>(self, v: T) -> Self
pub fn set_public_keys<T, V>(self, v: T) -> Self
Sets the value of public_keys.
Trait Implementations§
Source§impl Clone for StartEnvironmentRequest
impl Clone for StartEnvironmentRequest
Source§fn clone(&self) -> StartEnvironmentRequest
fn clone(&self) -> StartEnvironmentRequest
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 StartEnvironmentRequest
impl Debug for StartEnvironmentRequest
Source§impl Default for StartEnvironmentRequest
impl Default for StartEnvironmentRequest
Source§fn default() -> StartEnvironmentRequest
fn default() -> StartEnvironmentRequest
Returns the “default value” for a type. Read more
Source§impl Message for StartEnvironmentRequest
impl Message for StartEnvironmentRequest
Source§impl PartialEq for StartEnvironmentRequest
impl PartialEq for StartEnvironmentRequest
impl StructuralPartialEq for StartEnvironmentRequest
Auto Trait Implementations§
impl Freeze for StartEnvironmentRequest
impl RefUnwindSafe for StartEnvironmentRequest
impl Send for StartEnvironmentRequest
impl Sync for StartEnvironmentRequest
impl Unpin for StartEnvironmentRequest
impl UnwindSafe for StartEnvironmentRequest
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