Struct k8s_openapi::apiextensions_apiserver::pkg::apis::apiextensions::v1::CustomResourceSubresources
source · pub struct CustomResourceSubresources {
pub scale: Option<CustomResourceSubresourceScale>,
pub status: Option<CustomResourceSubresourceStatus>,
}
Expand description
CustomResourceSubresources defines the status and scale subresources for CustomResources.
Fields§
§scale: Option<CustomResourceSubresourceScale>
scale indicates the custom resource should serve a /scale
subresource that returns an autoscaling/v1
Scale object.
status: Option<CustomResourceSubresourceStatus>
status indicates the custom resource should serve a /status
subresource. When enabled: 1. requests to the custom resource primary endpoint ignore changes to the status
stanza of the object. 2. requests to the custom resource /status
subresource ignore changes to anything other than the status
stanza of the object.
Trait Implementations§
source§impl Clone for CustomResourceSubresources
impl Clone for CustomResourceSubresources
source§fn clone(&self) -> CustomResourceSubresources
fn clone(&self) -> CustomResourceSubresources
Returns a copy 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 CustomResourceSubresources
impl Debug for CustomResourceSubresources
source§impl DeepMerge for CustomResourceSubresources
impl DeepMerge for CustomResourceSubresources
source§fn merge_from(&mut self, other: Self)
fn merge_from(&mut self, other: Self)
Merge
other
into self
.source§impl Default for CustomResourceSubresources
impl Default for CustomResourceSubresources
source§fn default() -> CustomResourceSubresources
fn default() -> CustomResourceSubresources
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for CustomResourceSubresources
impl<'de> Deserialize<'de> for CustomResourceSubresources
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
source§impl JsonSchema for CustomResourceSubresources
impl JsonSchema for CustomResourceSubresources
source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
source§fn json_schema(__gen: &mut SchemaGenerator) -> Schema
fn json_schema(__gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moreimpl StructuralPartialEq for CustomResourceSubresources
Auto Trait Implementations§
impl Freeze for CustomResourceSubresources
impl RefUnwindSafe for CustomResourceSubresources
impl Send for CustomResourceSubresources
impl Sync for CustomResourceSubresources
impl Unpin for CustomResourceSubresources
impl UnwindSafe for CustomResourceSubresources
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
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)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)