#[non_exhaustive]pub struct StartMigrationRequest {
pub migrating_vm: String,
/* private fields */
}Expand description
Request message for ‘StartMigrationRequest’ request.
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.migrating_vm: StringRequired. The name of the MigratingVm.
Implementations§
Source§impl StartMigrationRequest
impl StartMigrationRequest
Sourcepub fn set_migrating_vm<T: Into<String>>(self, v: T) -> Self
pub fn set_migrating_vm<T: Into<String>>(self, v: T) -> Self
Sets the value of migrating_vm.
§Example
ⓘ
let x = StartMigrationRequest::new().set_migrating_vm(format!("projects/{project_id}/locations/{location_id}/sources/{source_id}/migratingVms/{migrating_vm_id}"));Trait Implementations§
Source§impl Clone for StartMigrationRequest
impl Clone for StartMigrationRequest
Source§fn clone(&self) -> StartMigrationRequest
fn clone(&self) -> StartMigrationRequest
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 StartMigrationRequest
impl Debug for StartMigrationRequest
Source§impl Default for StartMigrationRequest
impl Default for StartMigrationRequest
Source§fn default() -> StartMigrationRequest
fn default() -> StartMigrationRequest
Returns the “default value” for a type. Read more
Source§impl Message for StartMigrationRequest
impl Message for StartMigrationRequest
Source§impl PartialEq for StartMigrationRequest
impl PartialEq for StartMigrationRequest
Source§fn eq(&self, other: &StartMigrationRequest) -> bool
fn eq(&self, other: &StartMigrationRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for StartMigrationRequest
Auto Trait Implementations§
impl Freeze for StartMigrationRequest
impl RefUnwindSafe for StartMigrationRequest
impl Send for StartMigrationRequest
impl Sync for StartMigrationRequest
impl Unpin for StartMigrationRequest
impl UnsafeUnpin for StartMigrationRequest
impl UnwindSafe for StartMigrationRequest
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