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.

Implementors§

source§

impl Metadata for MutatingWebhookConfiguration

source§

impl Metadata for ValidatingWebhookConfiguration

source§

impl Metadata for ValidatingAdmissionPolicy

source§

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

source§

impl Metadata for TokenReview

source§

impl Metadata for 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 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::v1beta2::FlowSchema

source§

impl Metadata for k8s_openapi::api::flowcontrol::v1beta2::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 ClusterCIDR

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 PodScheduling

source§

impl Metadata for ResourceClaim

source§

impl Metadata for ResourceClaimTemplate

source§

impl Metadata for ResourceClass

source§

impl Metadata for PriorityClass

source§

impl Metadata for CSIDriver

source§

impl Metadata for CSINode

source§

impl Metadata for k8s_openapi::api::storage::v1::CSIStorageCapacity

source§

impl Metadata for StorageClass

source§

impl Metadata for VolumeAttachment

source§

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

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>where T: ListableResource,

§

type Ty = ListMeta