#[non_exhaustive]pub struct InstanceMoveRequest {
pub destination_zone: Option<String>,
pub target_instance: Option<String>,
/* private fields */
}Available on crate feature
projects only.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.destination_zone: Option<String>The URL of the destination zone to move the instance. This can be a full or partial URL. For example, the following are all valid URLs to a zone:
- https://www.googleapis.com/compute/v1/projects/project/zones/zone
- projects/project/zones/zone
- zones/zone
target_instance: Option<String>The URL of the target instance to move. This can be a full or partial URL. For example, the following are all valid URLs to an instance:
- https://www.googleapis.com/compute/v1/projects/project/zones/zone/instances/instance
- projects/project/zones/zone/instances/instance
- zones/zone/instances/instance
Implementations§
Source§impl InstanceMoveRequest
impl InstanceMoveRequest
pub fn new() -> Self
Sourcepub fn set_destination_zone<T>(self, v: T) -> Self
pub fn set_destination_zone<T>(self, v: T) -> Self
Sets the value of destination_zone.
§Example
ⓘ
let x = InstanceMoveRequest::new().set_destination_zone("example");Sourcepub fn set_or_clear_destination_zone<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_destination_zone<T>(self, v: Option<T>) -> Self
Sets or clears the value of destination_zone.
§Example
ⓘ
let x = InstanceMoveRequest::new().set_or_clear_destination_zone(Some("example"));
let x = InstanceMoveRequest::new().set_or_clear_destination_zone(None::<String>);Sourcepub fn set_target_instance<T>(self, v: T) -> Self
pub fn set_target_instance<T>(self, v: T) -> Self
Sets the value of target_instance.
§Example
ⓘ
let x = InstanceMoveRequest::new().set_target_instance("example");Sourcepub fn set_or_clear_target_instance<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_target_instance<T>(self, v: Option<T>) -> Self
Sets or clears the value of target_instance.
§Example
ⓘ
let x = InstanceMoveRequest::new().set_or_clear_target_instance(Some("example"));
let x = InstanceMoveRequest::new().set_or_clear_target_instance(None::<String>);Trait Implementations§
Source§impl Clone for InstanceMoveRequest
impl Clone for InstanceMoveRequest
Source§fn clone(&self) -> InstanceMoveRequest
fn clone(&self) -> InstanceMoveRequest
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 InstanceMoveRequest
impl Debug for InstanceMoveRequest
Source§impl Default for InstanceMoveRequest
impl Default for InstanceMoveRequest
Source§fn default() -> InstanceMoveRequest
fn default() -> InstanceMoveRequest
Returns the “default value” for a type. Read more
Source§impl Message for InstanceMoveRequest
impl Message for InstanceMoveRequest
Source§impl PartialEq for InstanceMoveRequest
impl PartialEq for InstanceMoveRequest
impl StructuralPartialEq for InstanceMoveRequest
Auto Trait Implementations§
impl Freeze for InstanceMoveRequest
impl RefUnwindSafe for InstanceMoveRequest
impl Send for InstanceMoveRequest
impl Sync for InstanceMoveRequest
impl Unpin for InstanceMoveRequest
impl UnwindSafe for InstanceMoveRequest
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