[][src]Function k8s_openapi::api_version

pub fn api_version<T>(_: &T) -> &'static str where
    T: Resource

Extracts the API version of the given resource value.

This just forwards to the value's impl of Resource::api_version but is useful when you already have a value and don't want to explicitly write its type.