#[non_exhaustive]pub struct CreateMigrationWorkflowRequest {
pub parent: String,
pub migration_workflow: Option<MigrationWorkflow>,
/* private fields */
}Expand description
Request to create a migration workflow resource.
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 name of the project to which this migration workflow belongs.
Example: projects/foo/locations/bar
migration_workflow: Option<MigrationWorkflow>Required. The migration workflow to create.
Implementations§
Source§impl CreateMigrationWorkflowRequest
impl CreateMigrationWorkflowRequest
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_migration_workflow<T>(self, v: T) -> Selfwhere
T: Into<MigrationWorkflow>,
pub fn set_migration_workflow<T>(self, v: T) -> Selfwhere
T: Into<MigrationWorkflow>,
Sets the value of migration_workflow.
Sourcepub fn set_or_clear_migration_workflow<T>(self, v: Option<T>) -> Selfwhere
T: Into<MigrationWorkflow>,
pub fn set_or_clear_migration_workflow<T>(self, v: Option<T>) -> Selfwhere
T: Into<MigrationWorkflow>,
Sets or clears the value of migration_workflow.
Trait Implementations§
Source§impl Clone for CreateMigrationWorkflowRequest
impl Clone for CreateMigrationWorkflowRequest
Source§fn clone(&self) -> CreateMigrationWorkflowRequest
fn clone(&self) -> CreateMigrationWorkflowRequest
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 CreateMigrationWorkflowRequest
impl Default for CreateMigrationWorkflowRequest
Source§fn default() -> CreateMigrationWorkflowRequest
fn default() -> CreateMigrationWorkflowRequest
Returns the “default value” for a type. Read more
Source§impl PartialEq for CreateMigrationWorkflowRequest
impl PartialEq for CreateMigrationWorkflowRequest
Source§fn eq(&self, other: &CreateMigrationWorkflowRequest) -> bool
fn eq(&self, other: &CreateMigrationWorkflowRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CreateMigrationWorkflowRequest
Auto Trait Implementations§
impl Freeze for CreateMigrationWorkflowRequest
impl RefUnwindSafe for CreateMigrationWorkflowRequest
impl Send for CreateMigrationWorkflowRequest
impl Sync for CreateMigrationWorkflowRequest
impl Unpin for CreateMigrationWorkflowRequest
impl UnwindSafe for CreateMigrationWorkflowRequest
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