alias for encode
derives a new encoder by transforming them into things this encoder applies to.
derives a new encoder by transforming them into things this encoder applies to.
something that can be transformed.
a function that transforms a B
into an A
an encoder for B
instances of this trait encode things to DBObjects.
the type that this can encode. contravariant so that this can be used in any situation where a subtype of A needs to be encoded.