k8s_openapi

Function group

Source
pub fn group<T>(_: &T) -> &'static str
where T: Resource,
Expand description

Extracts the group of the given resource value.

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