Trait HorizontalPodAutoscalerExt

Source
pub trait HorizontalPodAutoscalerExt: ResourceBuilder + Sized {
    // Required methods
    fn new<T: ScaleTargetRef>(name: impl ToString, scale_target_ref: &T) -> Self;
    fn with_max_replicas<T: ScaleTargetRef>(
        name: impl ToString,
        max: i32,
        scale_target_ref: &T,
    ) -> Self;
    fn max_replicas(self, max_replicas: i32) -> Self;
    fn min_replicas(self, min_replicas: i32) -> Self;
}

Required Methods§

Source

fn new<T: ScaleTargetRef>(name: impl ToString, scale_target_ref: &T) -> Self

Source

fn with_max_replicas<T: ScaleTargetRef>( name: impl ToString, max: i32, scale_target_ref: &T, ) -> Self

Source

fn max_replicas(self, max_replicas: i32) -> Self

Source

fn min_replicas(self, min_replicas: i32) -> Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§