Closed clux closed 4 years ago
As the docs say:
Resource
: "A trait applied to all Kubernetes resources."
Metadata
: "A trait applied to all Kubernetes resources that have metadata."
I don't understand how "that information is propagated down later" will help you, given that implementing a trait like Resource
is a type-system concern, not something you do dynamically. ie there is no "later".
(We can continue the discussion in https://github.com/clux/kube-rs/pull/157 )
I don't understand how "that information is propagated down later" will help you, given that implementing a trait like
Resource
is a type-system concern, not something you do dynamically. ie there is no "later".
Crap, you're right I'm sorry. Will need to look at a derive
based setup instead instead of keeping this abstraction.
As far as I can tell from the docs on the
Metadata
, the impls do not seem to require the associated constants fromResource
.I have a two part generic
Object<Spec, Status>
that I would like to implementMetadata
for, but am unable to, because it forces me toimpl Resource for
it, and that information is propagated down later.