k8s_openapi

Trait Metadata

Source
pub trait Metadata: Resource {
    type Ty;

    // Required methods
    fn metadata(&self) -> &<Self as Metadata>::Ty;
    fn metadata_mut(&mut self) -> &mut <Self as Metadata>::Ty;
}
Expand description

A trait applied to all Kubernetes resources that have metadata.

Required Associated Types§

Source

type Ty

The type of the metadata object.

Required Methods§

Source

fn metadata(&self) -> &<Self as Metadata>::Ty

Gets a reference to the metadata of this resource value.

Source

fn metadata_mut(&mut self) -> &mut <Self as Metadata>::Ty

Gets a mutable reference to the metadata of this resource value.

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§

Source§

impl Metadata for MutatingWebhookConfiguration

Source§

impl Metadata for k8s_openapi::api::admissionregistration::v1::ValidatingAdmissionPolicy

Source§

impl Metadata for k8s_openapi::api::admissionregistration::v1::ValidatingAdmissionPolicyBinding

Source§

impl Metadata for ValidatingWebhookConfiguration

Source§

impl Metadata for MutatingAdmissionPolicy

Source§

impl Metadata for MutatingAdmissionPolicyBinding

Source§

impl Metadata for k8s_openapi::api::admissionregistration::v1beta1::ValidatingAdmissionPolicy

Source§

impl Metadata for k8s_openapi::api::admissionregistration::v1beta1::ValidatingAdmissionPolicyBinding

Source§

impl Metadata for StorageVersion

Source§

impl Metadata for ControllerRevision

Source§

impl Metadata for DaemonSet

Source§

impl Metadata for Deployment

Source§

impl Metadata for ReplicaSet

Source§

impl Metadata for StatefulSet

Source§

impl Metadata for k8s_openapi::api::authentication::v1::SelfSubjectReview

Source§

impl Metadata for TokenRequest

Source§

impl Metadata for TokenReview

Source§

impl Metadata for k8s_openapi::api::authentication::v1beta1::SelfSubjectReview

Source§

impl Metadata for LocalSubjectAccessReview

Source§

impl Metadata for SelfSubjectAccessReview

Source§

impl Metadata for SelfSubjectRulesReview

Source§

impl Metadata for SubjectAccessReview

Source§

impl Metadata for k8s_openapi::api::autoscaling::v1::HorizontalPodAutoscaler

Source§

impl Metadata for Scale

Source§

impl Metadata for k8s_openapi::api::autoscaling::v2::HorizontalPodAutoscaler

Source§

impl Metadata for CronJob

Source§

impl Metadata for Job

Source§

impl Metadata for CertificateSigningRequest

Source§

impl Metadata for ClusterTrustBundle

Source§

impl Metadata for Lease

Source§

impl Metadata for LeaseCandidate

Source§

impl Metadata for Binding

Source§

impl Metadata for ComponentStatus

Source§

impl Metadata for ConfigMap

Source§

impl Metadata for Endpoints

Source§

impl Metadata for k8s_openapi::api::core::v1::Event

Source§

impl Metadata for LimitRange

Source§

impl Metadata for Namespace

Source§

impl Metadata for Node

Source§

impl Metadata for PersistentVolume

Source§

impl Metadata for PersistentVolumeClaim

Source§

impl Metadata for Pod

Source§

impl Metadata for PodTemplate

Source§

impl Metadata for ReplicationController

Source§

impl Metadata for ResourceQuota

Source§

impl Metadata for Secret

Source§

impl Metadata for Service

Source§

impl Metadata for ServiceAccount

Source§

impl Metadata for EndpointSlice

Source§

impl Metadata for k8s_openapi::api::events::v1::Event

Source§

impl Metadata for FlowSchema

Source§

impl Metadata for PriorityLevelConfiguration

Source§

impl Metadata for Ingress

Source§

impl Metadata for IngressClass

Source§

impl Metadata for NetworkPolicy

Source§

impl Metadata for IPAddress

Source§

impl Metadata for ServiceCIDR

Source§

impl Metadata for RuntimeClass

Source§

impl Metadata for Eviction

Source§

impl Metadata for PodDisruptionBudget

Source§

impl Metadata for ClusterRole

Source§

impl Metadata for ClusterRoleBinding

Source§

impl Metadata for Role

Source§

impl Metadata for RoleBinding

Source§

impl Metadata for k8s_openapi::api::resource::v1alpha3::DeviceClass

Source§

impl Metadata for k8s_openapi::api::resource::v1alpha3::ResourceClaim

Source§

impl Metadata for k8s_openapi::api::resource::v1alpha3::ResourceClaimTemplate

Source§

impl Metadata for k8s_openapi::api::resource::v1alpha3::ResourceSlice

Source§

impl Metadata for k8s_openapi::api::resource::v1beta1::DeviceClass

Source§

impl Metadata for k8s_openapi::api::resource::v1beta1::ResourceClaim

Source§

impl Metadata for k8s_openapi::api::resource::v1beta1::ResourceClaimTemplate

Source§

impl Metadata for k8s_openapi::api::resource::v1beta1::ResourceSlice

Source§

impl Metadata for PriorityClass

Source§

impl Metadata for CSIDriver

Source§

impl Metadata for CSINode

Source§

impl Metadata for CSIStorageCapacity

Source§

impl Metadata for StorageClass

Source§

impl Metadata for VolumeAttachment

Source§

impl Metadata for k8s_openapi::api::storage::v1alpha1::VolumeAttributesClass

Source§

impl Metadata for k8s_openapi::api::storage::v1beta1::VolumeAttributesClass

Source§

impl Metadata for StorageVersionMigration

Source§

impl Metadata for CustomResourceDefinition

Source§

impl Metadata for Status

Source§

impl Metadata for APIService

Source§

impl<T> Metadata for List<T>