#[non_exhaustive]pub struct CreateWorkspaceRequest {
pub parent: String,
pub workspace: Option<Workspace>,
pub workspace_id: String,
/* private fields */
}Expand description
CreateWorkspace request message.
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.parent: StringRequired. The repository in which to create the workspace. Must be in the
format projects/*/locations/*/repositories/*.
workspace: Option<Workspace>Required. The workspace to create.
workspace_id: StringRequired. The ID to use for the workspace, which will become the final component of the workspace’s resource name.
Implementations§
Source§impl CreateWorkspaceRequest
impl CreateWorkspaceRequest
pub fn new() -> Self
Sourcepub fn set_parent<T: Into<String>>(self, v: T) -> Self
pub fn set_parent<T: Into<String>>(self, v: T) -> Self
Sets the value of parent.
Sourcepub fn set_workspace<T>(self, v: T) -> Self
pub fn set_workspace<T>(self, v: T) -> Self
Sets the value of workspace.
Sourcepub fn set_or_clear_workspace<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_workspace<T>(self, v: Option<T>) -> Self
Sets or clears the value of workspace.
Sourcepub fn set_workspace_id<T: Into<String>>(self, v: T) -> Self
pub fn set_workspace_id<T: Into<String>>(self, v: T) -> Self
Sets the value of workspace_id.
Trait Implementations§
Source§impl Clone for CreateWorkspaceRequest
impl Clone for CreateWorkspaceRequest
Source§fn clone(&self) -> CreateWorkspaceRequest
fn clone(&self) -> CreateWorkspaceRequest
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 CreateWorkspaceRequest
impl Debug for CreateWorkspaceRequest
Source§impl Default for CreateWorkspaceRequest
impl Default for CreateWorkspaceRequest
Source§fn default() -> CreateWorkspaceRequest
fn default() -> CreateWorkspaceRequest
Returns the “default value” for a type. Read more
Source§impl Message for CreateWorkspaceRequest
impl Message for CreateWorkspaceRequest
Source§impl PartialEq for CreateWorkspaceRequest
impl PartialEq for CreateWorkspaceRequest
impl StructuralPartialEq for CreateWorkspaceRequest
Auto Trait Implementations§
impl Freeze for CreateWorkspaceRequest
impl RefUnwindSafe for CreateWorkspaceRequest
impl Send for CreateWorkspaceRequest
impl Sync for CreateWorkspaceRequest
impl Unpin for CreateWorkspaceRequest
impl UnwindSafe for CreateWorkspaceRequest
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