Struct google_compute1::Scheduling
source · pub struct Scheduling {
pub automatic_restart: Option<bool>,
pub node_affinities: Option<Vec<SchedulingNodeAffinity>>,
pub preemptible: Option<bool>,
pub on_host_maintenance: Option<String>,
}Expand description
Sets the scheduling options for an Instance.
§Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
- set scheduling instances (request)
Fields§
§automatic_restart: Option<bool>Specifies whether the instance should be automatically restarted if it is terminated by Compute Engine (not terminated by a user). You can only set the automatic restart option for standard instances. Preemptible instances cannot be automatically restarted.
By default, this is set to true so an instance is automatically restarted if it is terminated by Compute Engine.
node_affinities: Option<Vec<SchedulingNodeAffinity>>A set of node affinity and anti-affinity.
preemptible: Option<bool>Defines whether the instance is preemptible. This can only be set during instance creation, it cannot be set or changed after the instance has been created.
on_host_maintenance: Option<String>Defines the maintenance behavior for this instance. For standard instances, the default behavior is MIGRATE. For preemptible instances, the default and only possible behavior is TERMINATE. For more information, see Setting Instance Scheduling Options.
Trait Implementations§
source§impl Clone for Scheduling
impl Clone for Scheduling
source§fn clone(&self) -> Scheduling
fn clone(&self) -> Scheduling
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for Scheduling
impl Debug for Scheduling
source§impl Default for Scheduling
impl Default for Scheduling
source§fn default() -> Scheduling
fn default() -> Scheduling
source§impl<'de> Deserialize<'de> for Scheduling
impl<'de> Deserialize<'de> for Scheduling
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
source§impl Serialize for Scheduling
impl Serialize for Scheduling
impl RequestValue for Scheduling
Auto Trait Implementations§
impl Freeze for Scheduling
impl RefUnwindSafe for Scheduling
impl Send for Scheduling
impl Sync for Scheduling
impl Unpin for Scheduling
impl UnwindSafe for Scheduling
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more