#[non_exhaustive]pub struct Autopilot {
pub enabled: bool,
pub workload_policy_config: Option<WorkloadPolicyConfig>,
}Expand description
Autopilot is the configuration for Autopilot settings on the cluster.
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.enabled: boolEnable Autopilot
workload_policy_config: Option<WorkloadPolicyConfig>Workload policy configuration for Autopilot.
Implementations§
Source§impl Autopilot
impl Autopilot
Sourcepub fn set_enabled<T: Into<bool>>(self, v: T) -> Self
pub fn set_enabled<T: Into<bool>>(self, v: T) -> Self
Sets the value of enabled.
Sourcepub fn set_workload_policy_config<T: Into<Option<WorkloadPolicyConfig>>>(
self,
v: T,
) -> Self
pub fn set_workload_policy_config<T: Into<Option<WorkloadPolicyConfig>>>( self, v: T, ) -> Self
Sets the value of workload_policy_config.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Autopilot
impl<'de> Deserialize<'de> for Autopilot
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>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Autopilot
Auto Trait Implementations§
impl Freeze for Autopilot
impl RefUnwindSafe for Autopilot
impl Send for Autopilot
impl Sync for Autopilot
impl Unpin for Autopilot
impl UnwindSafe for Autopilot
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