#[non_exhaustive]pub struct PodAutoscaling {
pub hpa_profile: Option<HPAProfile>,
/* private fields */
}Expand description
PodAutoscaling is used for configuration of parameters for workload autoscaling.
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.hpa_profile: Option<HPAProfile>Selected Horizontal Pod Autoscaling profile.
Implementations§
Source§impl PodAutoscaling
impl PodAutoscaling
pub fn new() -> Self
Sourcepub fn set_hpa_profile<T>(self, v: T) -> Selfwhere
T: Into<HPAProfile>,
pub fn set_hpa_profile<T>(self, v: T) -> Selfwhere
T: Into<HPAProfile>,
Sets the value of hpa_profile.
§Example
ⓘ
use google_cloud_container_v1::model::pod_autoscaling::HPAProfile;
let x0 = PodAutoscaling::new().set_hpa_profile(HPAProfile::None);
let x1 = PodAutoscaling::new().set_hpa_profile(HPAProfile::Performance);Sourcepub fn set_or_clear_hpa_profile<T>(self, v: Option<T>) -> Selfwhere
T: Into<HPAProfile>,
pub fn set_or_clear_hpa_profile<T>(self, v: Option<T>) -> Selfwhere
T: Into<HPAProfile>,
Sets or clears the value of hpa_profile.
§Example
ⓘ
use google_cloud_container_v1::model::pod_autoscaling::HPAProfile;
let x0 = PodAutoscaling::new().set_or_clear_hpa_profile(Some(HPAProfile::None));
let x1 = PodAutoscaling::new().set_or_clear_hpa_profile(Some(HPAProfile::Performance));
let x_none = PodAutoscaling::new().set_or_clear_hpa_profile(None::<HPAProfile>);Trait Implementations§
Source§impl Clone for PodAutoscaling
impl Clone for PodAutoscaling
Source§fn clone(&self) -> PodAutoscaling
fn clone(&self) -> PodAutoscaling
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 PodAutoscaling
impl Debug for PodAutoscaling
Source§impl Default for PodAutoscaling
impl Default for PodAutoscaling
Source§fn default() -> PodAutoscaling
fn default() -> PodAutoscaling
Returns the “default value” for a type. Read more
Source§impl Message for PodAutoscaling
impl Message for PodAutoscaling
Source§impl PartialEq for PodAutoscaling
impl PartialEq for PodAutoscaling
impl StructuralPartialEq for PodAutoscaling
Auto Trait Implementations§
impl Freeze for PodAutoscaling
impl RefUnwindSafe for PodAutoscaling
impl Send for PodAutoscaling
impl Sync for PodAutoscaling
impl Unpin for PodAutoscaling
impl UnwindSafe for PodAutoscaling
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