Struct k8s_openapi::apiextensions_apiserver::pkg::apis::apiextensions::v1beta1::CustomResourceSubresourceScale [−][src]
pub struct CustomResourceSubresourceScale { pub label_selector_path: Option<String>, pub spec_replicas_path: String, pub status_replicas_path: String, }
Expand description
CustomResourceSubresourceScale defines how to serve the scale subresource for CustomResources.
Fields
label_selector_path: Option<String>
LabelSelectorPath defines the JSON path inside of a CustomResource that corresponds to Scale.Status.Selector. Only JSON paths without the array notation are allowed. Must be a JSON Path under .status. Must be set to work with HPA. If there is no value under the given path in the CustomResource, the status label selector value in the /scale subresource will default to the empty string.
spec_replicas_path: String
SpecReplicasPath defines the JSON path inside of a CustomResource that corresponds to Scale.Spec.Replicas. Only JSON paths without the array notation are allowed. Must be a JSON Path under .spec. If there is no value under the given path in the CustomResource, the /scale subresource will return an error on GET.
status_replicas_path: String
StatusReplicasPath defines the JSON path inside of a CustomResource that corresponds to Scale.Status.Replicas. Only JSON paths without the array notation are allowed. Must be a JSON Path under .status. If there is no value under the given path in the CustomResource, the status replica value in the /scale subresource will default to 0.
Trait Implementations
impl Clone for CustomResourceSubresourceScale
[src]
impl Clone for CustomResourceSubresourceScale
[src]fn clone(&self) -> CustomResourceSubresourceScale
[src]
fn clone(&self) -> CustomResourceSubresourceScale
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for CustomResourceSubresourceScale
[src]
impl Debug for CustomResourceSubresourceScale
[src]impl Default for CustomResourceSubresourceScale
[src]
impl Default for CustomResourceSubresourceScale
[src]fn default() -> CustomResourceSubresourceScale
[src]
fn default() -> CustomResourceSubresourceScale
[src]Returns the “default value” for a type. Read more
impl<'de> Deserialize<'de> for CustomResourceSubresourceScale
[src]
impl<'de> Deserialize<'de> for CustomResourceSubresourceScale
[src]fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
impl PartialEq<CustomResourceSubresourceScale> for CustomResourceSubresourceScale
[src]
impl PartialEq<CustomResourceSubresourceScale> for CustomResourceSubresourceScale
[src]fn eq(&self, other: &CustomResourceSubresourceScale) -> bool
[src]
fn eq(&self, other: &CustomResourceSubresourceScale) -> bool
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
fn ne(&self, other: &CustomResourceSubresourceScale) -> bool
[src]
fn ne(&self, other: &CustomResourceSubresourceScale) -> bool
[src]This method tests for !=
.
impl StructuralPartialEq for CustomResourceSubresourceScale
[src]
Auto Trait Implementations
impl RefUnwindSafe for CustomResourceSubresourceScale
impl Send for CustomResourceSubresourceScale
impl Sync for CustomResourceSubresourceScale
impl Unpin for CustomResourceSubresourceScale
impl UnwindSafe for CustomResourceSubresourceScale
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,