Metadata

smithy4s.http.Metadata
See theMetadata companion class
object Metadata

Attributes

Companion
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Metadata.type

Members list

Type members

Classlikes

trait Access

Attributes

Supertypes
class Object
trait Matchable
class Any
object Decoder

Attributes

Supertypes
class Impl[Decoder]
class Object
trait Matchable
class Any
Show all
Self type
Decoder.type
object Encoder

Attributes

Supertypes
class Impl[Encoder]
class Object
trait Matchable
class Any
Show all
Self type
Encoder.type

Types

type Decoder[A] = Decoder[[_] =>> Either[MetadataError, _$4], Metadata, A]

Reads metadata and produces a map that contains values extracted from it, labelled by field names.

Reads metadata and produces a map that contains values extracted from it, labelled by field names.

Attributes

type Encoder[A] = Encoder[Metadata, A]

Reads metadata and produces a map that contains values extracted from it, labelled by field names.

Reads metadata and produces a map that contains values extracted from it, labelled by field names.

Attributes

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def decode[A](metadata: Metadata)(implicit decoder: Decoder[A]): Either[MetadataError, A]

If possible, decode the data from fields that are bound to http metadata.

If possible, decode the data from fields that are bound to http metadata.

Attributes

def encode[A](a: A)(implicit encoder: Encoder[A]): Metadata
def fold[A](i: Iterable[A])(f: A => Metadata): Metadata

Concrete fields

Implicits

Implicits

implicit def decoderFromSchema[A : Schema]: Decoder[A]
implicit def encoderFromSchema[A : Schema]: Encoder[A]