getResultEncoder

open fun <X> getResultEncoder(resource: Resource<X>): ResourceEncoder<X>