pub async fn get_resource<K>( api: &Api<K>, name: &str, ) -> Result<Option<K>, Error>where K: Resource + Clone + Send + DeserializeOwned + Serialize + Debug + 'static, <K as Resource>::DynamicType: Default,