Trait k8s_openapi::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.

Object Safety§

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 k8s_openapi::api::admissionregistration::v1alpha1::ValidatingAdmissionPolicy

source§

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

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::v1alpha1::SelfSubjectReview

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 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 k8s_openapi::api::flowcontrol::v1::FlowSchema

source§

impl Metadata for k8s_openapi::api::flowcontrol::v1::PriorityLevelConfiguration

source§

impl Metadata for k8s_openapi::api::flowcontrol::v1beta3::FlowSchema

source§

impl Metadata for k8s_openapi::api::flowcontrol::v1beta3::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 PodSchedulingContext

source§

impl Metadata for ResourceClaim

source§

impl Metadata for ResourceClaimParameters

source§

impl Metadata for ResourceClaimTemplate

source§

impl Metadata for ResourceClass

source§

impl Metadata for ResourceClassParameters

source§

impl Metadata for 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 VolumeAttributesClass

source§

impl Metadata for StorageVersionMigration

source§

impl Metadata for CustomResourceDefinition

source§

impl Metadata for Status

§

type Ty = ListMeta

source§

impl Metadata for APIService

source§

impl<T> Metadata for List<T>

§

type Ty = ListMeta