Encoder

besom.internal.Encoder
See theEncoder companion object
trait Encoder[A]

Encoders handle the details of serialization.

High-level encoders:

  • ArgsEncoder - this is a separate typeclass required for serialization of top-level *Args classes
  • ProviderArgsEncoder - this is a separate typeclass required for serialization of top-level ProviderArgs classes that have most fields serialized as JSON strings, with the exception of null and String

Attributes

See also

also Decoder

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object boolEncoder.type
object doubleEncoder.type
object idEncoder.type
object intEncoder.type
object jsonEncoder.type
object nesEncoder.type
object stringEncoder.type
object urnEncoder.type
object valueEncoder.type
Show all
Self type
Encoder[A]

Members list

Value members

Abstract methods

def encode(a: A)(using Context): Result[(Metadata, Value)]

Serializes the given object to gRPC value and Pulumi Metadata

Serializes the given object to gRPC value and Pulumi Metadata

Attributes

Concrete methods

def contramap[B](f: B => A): Encoder[B]