Function k8s_openapi::api_version

source ·
pub fn api_version<T>(_: &T) -> &'static strwhere
    T: Resource,
Expand description

Extracts the API version of the given resource value.

This just returns the Resource::API_VERSION value for the argument’s type, but is useful when you already have a value and don’t want to explicitly write its type.