Encoder

Companion
class
trait AutoDerivation[[T] =>> Encoder[T]]
trait Derivation[[T] =>> Encoder[T]]
trait CommonDerivation[[T] =>> Encoder[T]]
class Object
trait Matchable
class Any

Type members

Inherited types

type Typeclass[T] = TypeClass[T]
Inherited from
CommonDerivation

Value members

Concrete methods

def apply[T](f: T => Any): Encoder[T]

Returns an [Encoder] that encodes using the supplied function.

Returns an [Encoder] that encodes using the supplied function.

def apply[T](using encoder: Encoder[T]): Encoder[T]
def identity[T]: Encoder[T]

Returns an [Encoder] that encodes by simply returning the input value.

Returns an [Encoder] that encodes by simply returning the input value.

Inherited methods

inline def derived[A](using Of[A]): Encoder[A]
Inherited from
Derivation
inline def derivedMirror[A](using mirror: Of[A]): Encoder[A]
Inherited from
Derivation
inline def derivedMirrorProduct[A](product: ProductOf[A]): Encoder[A]
Inherited from
CommonDerivation
inline def derivedMirrorSum[A](sum: SumOf[A]): Encoder[A]
Inherited from
Derivation
inline def getParams[T, Labels <: Tuple, Params <: Tuple](annotations: Map[String, List[Any]], typeAnnotations: Map[String, List[Any]], repeated: Map[String, Boolean], idx: Int): List[Param[Typeclass, T]]
Inherited from
CommonDerivation
override def join[T](ctx: CaseClass[[T] =>> Encoder[T], T]): Encoder[T]
Definition Classes
MagnoliaDerivedEncoder -> CommonDerivation
Inherited from
MagnoliaDerivedEncoder
override def split[T](ctx: SealedTrait[[T] =>> Encoder[T], T]): Encoder[T]
Definition Classes
Inherited from
MagnoliaDerivedEncoder
inline def subtypes[T, SubtypeTuple <: Tuple](m: SumOf[T], idx: Int): List[Subtype[Typeclass, T, _]]
Inherited from
Derivation

Inherited fields

final lazy val BooleanEncoder: Encoder[Boolean]
Inherited from
PrimitiveEncoders
final lazy val ByteEncoder: Encoder[Byte]
Inherited from
PrimitiveEncoders
final lazy val DateEncoder: Encoder[Date]
Inherited from
TemporalEncoders
final lazy val DoubleEncoder: Encoder[Double]
Inherited from
PrimitiveEncoders
final lazy val Encoder_Array: Encoder[Array[Byte]]
Inherited from
ByteIterableEncoders
final lazy val Encoder_BigDecimal: Encoder[BigDecimal]
Inherited from
BigDecimalEncoders
final lazy val Encoder_ByteBuffer: Encoder[ByteBuffer]
Inherited from
ByteIterableEncoders
final lazy val Encoder_CharSequence: Encoder[CharSequence]
Inherited from
StringEncoders
final lazy val Encoder_Instant: Encoder[Instant]
Inherited from
TemporalEncoders
final lazy val Encoder_Int: Encoder[Int]
Inherited from
PrimitiveEncoders
final lazy val Encoder_List: Encoder[List[Byte]]
Inherited from
ByteIterableEncoders
final lazy val Encoder_LocalDateTime: Encoder[LocalDateTime]
Inherited from
TemporalEncoders
final lazy val Encoder_LocalTime: Encoder[LocalTime]
Inherited from
TemporalEncoders
final lazy val Encoder_OffsetDateTime: Encoder[OffsetDateTime]
Inherited from
TemporalEncoders
final lazy val Encoder_Seq: Encoder[Seq[Byte]]
Inherited from
ByteIterableEncoders
final lazy val Encoder_String: Encoder[String]
Inherited from
StringEncoders
final lazy val Encoder_UUID: Encoder[UUID]
Inherited from
StringEncoders
final lazy val Encoder_Utf8: Encoder[Utf8]
Inherited from
StringEncoders
final lazy val Encoder_Vector: Encoder[Vector[Byte]]
Inherited from
ByteIterableEncoders
final lazy val FloatEncoder: Encoder[Float]
Inherited from
PrimitiveEncoders
val IterableByteEncoder: Encoder[Iterable[Byte]]
Inherited from
ByteIterableEncoders
final lazy val LocalDateEncoder: Encoder[LocalDate]
Inherited from
TemporalEncoders
final lazy val LongEncoder: Encoder[Long]
Inherited from
PrimitiveEncoders
final lazy val ShortEncoder: Encoder[Short]
Inherited from
PrimitiveEncoders
final lazy val TimestampEncoder: Encoder[Timestamp]
Inherited from
TemporalEncoders

Givens

Inherited givens

Inherited from
CollectionEncoders
Inherited from
OptionEncoders
Inherited from
CollectionEncoders
Inherited from
CollectionEncoders
Inherited from
TupleEncoders
Inherited from
TupleEncoders
Inherited from
TupleEncoders
Inherited from
TupleEncoders
given autoDerived: TypeClass[A]
Inherited from
AutoDerivation
given eitherEncoder[A, B](using val a: Encoder[A], val b: Encoder[B]): Encoder[Either[A, B]]
Inherited from
EitherEncoders
Inherited from
CollectionEncoders