#[non_exhaustive]pub struct CreateMigrationJobRequest {
pub parent: String,
pub migration_job_id: String,
pub migration_job: Option<MigrationJob>,
pub request_id: String,
/* private fields */
}Expand description
Request message to create a new Database Migration Service migration job in the specified project and region.
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 parent which owns this collection of migration jobs.
migration_job_id: StringRequired. The ID of the instance to create.
migration_job: Option<MigrationJob>Required. Represents a migration job object.
request_id: StringOptional. A unique ID used to identify the request. If the server receives two requests with the same ID, then the second request is ignored.
It is recommended to always set this value to a UUID.
The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.
Implementations§
Source§impl CreateMigrationJobRequest
impl CreateMigrationJobRequest
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_job_id<T: Into<String>>(self, v: T) -> Self
pub fn set_migration_job_id<T: Into<String>>(self, v: T) -> Self
Sets the value of migration_job_id.
Sourcepub fn set_migration_job<T>(self, v: T) -> Selfwhere
T: Into<MigrationJob>,
pub fn set_migration_job<T>(self, v: T) -> Selfwhere
T: Into<MigrationJob>,
Sets the value of migration_job.
Sourcepub fn set_or_clear_migration_job<T>(self, v: Option<T>) -> Selfwhere
T: Into<MigrationJob>,
pub fn set_or_clear_migration_job<T>(self, v: Option<T>) -> Selfwhere
T: Into<MigrationJob>,
Sets or clears the value of migration_job.
Sourcepub fn set_request_id<T: Into<String>>(self, v: T) -> Self
pub fn set_request_id<T: Into<String>>(self, v: T) -> Self
Sets the value of request_id.
Trait Implementations§
Source§impl Clone for CreateMigrationJobRequest
impl Clone for CreateMigrationJobRequest
Source§fn clone(&self) -> CreateMigrationJobRequest
fn clone(&self) -> CreateMigrationJobRequest
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 CreateMigrationJobRequest
impl Debug for CreateMigrationJobRequest
Source§impl Default for CreateMigrationJobRequest
impl Default for CreateMigrationJobRequest
Source§fn default() -> CreateMigrationJobRequest
fn default() -> CreateMigrationJobRequest
Returns the “default value” for a type. Read more
Source§impl Message for CreateMigrationJobRequest
impl Message for CreateMigrationJobRequest
impl StructuralPartialEq for CreateMigrationJobRequest
Auto Trait Implementations§
impl Freeze for CreateMigrationJobRequest
impl RefUnwindSafe for CreateMigrationJobRequest
impl Send for CreateMigrationJobRequest
impl Sync for CreateMigrationJobRequest
impl Unpin for CreateMigrationJobRequest
impl UnwindSafe for CreateMigrationJobRequest
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