ZTemporalCodec

zio.temporal.json.ZTemporalCodec
See theZTemporalCodec companion trait

Attributes

Companion
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def apply[A](using ev: ZTemporalCodec[A]): ev.type

Summon an existing instance.

Summon an existing instance.

Attributes

inline def derived[A](using m: Of[A], classTag: ClassTag[A], cfg: JsonCodecConfiguration = ...): ZTemporalCodec[A]

Derive a codec for a case class, case object, or sealed trait by generating a zio-json codec via zio.json.JsonCodec.derived and wrapping it. Requires a deriving.Mirror.Of[A], as all zio-json Scala 3 derivation does.

Derive a codec for a case class, case object, or sealed trait by generating a zio-json codec via zio.json.JsonCodec.derived and wrapping it. Requires a deriving.Mirror.Of[A], as all zio-json Scala 3 derivation does.

Attributes

def make[A](jsonEncoder: JsonEncoder[A], jsonDecoder: JsonDecoder[A])(using ClassTag[A]): ZTemporalCodec[A]

Build a codec explicitly from the raw zio-json pieces.

Build a codec explicitly from the raw zio-json pieces.

Attributes

Givens

Givens

given jsonDecoderFromJsonCodec: [A] => JsonCodec[A] => JsonDecoder[A]

Bridge counterpart to jsonEncoderFromJsonCodec.

Bridge counterpart to jsonEncoderFromJsonCodec.

Attributes

given jsonEncoderFromJsonCodec: [A] => JsonCodec[A] => JsonEncoder[A]

Bridge: when a JsonCodec[A] is in scope (e.g. from final case class Foo(...) derives JsonCodec), expose its encoder as a JsonEncoder[A]. Lets zio-json's generic combinators (JsonEncoder.list, JsonEncoder.option, …) find what they need without forcing users to hand-write a separate given JsonEncoder[Foo] = jsonCodec.encoder.

Bridge: when a JsonCodec[A] is in scope (e.g. from final case class Foo(...) derives JsonCodec), expose its encoder as a JsonEncoder[A]. Lets zio-json's generic combinators (JsonEncoder.list, JsonEncoder.option, …) find what they need without forcing users to hand-write a separate given JsonEncoder[Foo] = jsonCodec.encoder.

Intentionally generic so it stays less-specific than zio-json's own JsonEncoder.int etc. — Scala's given-specificity rules prefer the non-generic instance for primitives, avoiding ambiguity.

Attributes

given unitCodec: ZTemporalCodec[Unit]
given unitDecoder: JsonDecoder[Unit]
given unitEncoder: JsonEncoder[Unit]

Inherited givens

given kind0: [A] => (JsonEncoder[A], JsonDecoder[A], ClassTag[A]) => ZTemporalCodec[A]

Attributes

Inherited from:
LowPriorityZTemporalCodecInstances1 (hidden)
given kind1: [F[_], A] => (ZTemporalCodec[A], JsonEncoder[F[A]], JsonDecoder[F[A]], ClassTag[F[A]]) => ZTemporalCodec[F[A]]

Attributes

Inherited from:
LowPriorityZTemporalCodecInstances0 (hidden)
given kind10: [F[_, _, _, _, _, _, _, _, _, _], A, B, C, D, E, G, H, I, J, K] => (ZTemporalCodec[A], ZTemporalCodec[B], ZTemporalCodec[C], ZTemporalCodec[D], ZTemporalCodec[E], ZTemporalCodec[G], ZTemporalCodec[H], ZTemporalCodec[I], ZTemporalCodec[J], ZTemporalCodec[K], JsonEncoder[F[A, B, C, D, E, G, H, I, J, K]], JsonDecoder[F[A, B, C, D, E, G, H, I, J, K]], ClassTag[F[A, B, C, D, E, G, H, I, J, K]]) => ZTemporalCodec[F[A, B, C, D, E, G, H, I, J, K]]

Attributes

Inherited from:
LowPriorityZTemporalCodecInstances0 (hidden)
given kind11: [F[_, _, _, _, _, _, _, _, _, _, _], A, B, C, D, E, G, H, I, J, K, L] => (ZTemporalCodec[A], ZTemporalCodec[B], ZTemporalCodec[C], ZTemporalCodec[D], ZTemporalCodec[E], ZTemporalCodec[G], ZTemporalCodec[H], ZTemporalCodec[I], ZTemporalCodec[J], ZTemporalCodec[K], ZTemporalCodec[L], JsonEncoder[F[A, B, C, D, E, G, H, I, J, K, L]], JsonDecoder[F[A, B, C, D, E, G, H, I, J, K, L]], ClassTag[F[A, B, C, D, E, G, H, I, J, K, L]]) => ZTemporalCodec[F[A, B, C, D, E, G, H, I, J, K, L]]

Attributes

Inherited from:
LowPriorityZTemporalCodecInstances0 (hidden)
given kind12: [F[_, _, _, _, _, _, _, _, _, _, _, _], A, B, C, D, E, G, H, I, J, K, L, M] => (ZTemporalCodec[A], ZTemporalCodec[B], ZTemporalCodec[C], ZTemporalCodec[D], ZTemporalCodec[E], ZTemporalCodec[G], ZTemporalCodec[H], ZTemporalCodec[I], ZTemporalCodec[J], ZTemporalCodec[K], ZTemporalCodec[L], ZTemporalCodec[M], JsonEncoder[F[A, B, C, D, E, G, H, I, J, K, L, M]], JsonDecoder[F[A, B, C, D, E, G, H, I, J, K, L, M]], ClassTag[F[A, B, C, D, E, G, H, I, J, K, L, M]]) => ZTemporalCodec[F[A, B, C, D, E, G, H, I, J, K, L, M]]

Attributes

Inherited from:
LowPriorityZTemporalCodecInstances0 (hidden)
given kind13: [F[_, _, _, _, _, _, _, _, _, _, _, _, _], A, B, C, D, E, G, H, I, J, K, L, M, N] => (ZTemporalCodec[A], ZTemporalCodec[B], ZTemporalCodec[C], ZTemporalCodec[D], ZTemporalCodec[E], ZTemporalCodec[G], ZTemporalCodec[H], ZTemporalCodec[I], ZTemporalCodec[J], ZTemporalCodec[K], ZTemporalCodec[L], ZTemporalCodec[M], ZTemporalCodec[N], JsonEncoder[F[A, B, C, D, E, G, H, I, J, K, L, M, N]], JsonDecoder[F[A, B, C, D, E, G, H, I, J, K, L, M, N]], ClassTag[F[A, B, C, D, E, G, H, I, J, K, L, M, N]]) => ZTemporalCodec[F[A, B, C, D, E, G, H, I, J, K, L, M, N]]

Attributes

Inherited from:
LowPriorityZTemporalCodecInstances0 (hidden)
given kind14: [F[_, _, _, _, _, _, _, _, _, _, _, _, _, _], A, B, C, D, E, G, H, I, J, K, L, M, N, O] => (ZTemporalCodec[A], ZTemporalCodec[B], ZTemporalCodec[C], ZTemporalCodec[D], ZTemporalCodec[E], ZTemporalCodec[G], ZTemporalCodec[H], ZTemporalCodec[I], ZTemporalCodec[J], ZTemporalCodec[K], ZTemporalCodec[L], ZTemporalCodec[M], ZTemporalCodec[N], ZTemporalCodec[O], JsonEncoder[F[A, B, C, D, E, G, H, I, J, K, L, M, N, O]], JsonDecoder[F[A, B, C, D, E, G, H, I, J, K, L, M, N, O]], ClassTag[F[A, B, C, D, E, G, H, I, J, K, L, M, N, O]]) => ZTemporalCodec[F[A, B, C, D, E, G, H, I, J, K, L, M, N, O]]

Attributes

Inherited from:
LowPriorityZTemporalCodecInstances0 (hidden)
given kind15: [F[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _], A, B, C, D, E, G, H, I, J, K, L, M, N, O, P] => (ZTemporalCodec[A], ZTemporalCodec[B], ZTemporalCodec[C], ZTemporalCodec[D], ZTemporalCodec[E], ZTemporalCodec[G], ZTemporalCodec[H], ZTemporalCodec[I], ZTemporalCodec[J], ZTemporalCodec[K], ZTemporalCodec[L], ZTemporalCodec[M], ZTemporalCodec[N], ZTemporalCodec[O], ZTemporalCodec[P], JsonEncoder[F[A, B, C, D, E, G, H, I, J, K, L, M, N, O, P]], JsonDecoder[F[A, B, C, D, E, G, H, I, J, K, L, M, N, O, P]], ClassTag[F[A, B, C, D, E, G, H, I, J, K, L, M, N, O, P]]) => ZTemporalCodec[F[A, B, C, D, E, G, H, I, J, K, L, M, N, O, P]]

Attributes

Inherited from:
LowPriorityZTemporalCodecInstances0 (hidden)
given kind16: [F[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _], A, B, C, D, E, G, H, I, J, K, L, M, N, O, P, Q] => (ZTemporalCodec[A], ZTemporalCodec[B], ZTemporalCodec[C], ZTemporalCodec[D], ZTemporalCodec[E], ZTemporalCodec[G], ZTemporalCodec[H], ZTemporalCodec[I], ZTemporalCodec[J], ZTemporalCodec[K], ZTemporalCodec[L], ZTemporalCodec[M], ZTemporalCodec[N], ZTemporalCodec[O], ZTemporalCodec[P], ZTemporalCodec[Q], JsonEncoder[F[A, B, C, D, E, G, H, I, J, K, L, M, N, O, P, Q]], JsonDecoder[F[A, B, C, D, E, G, H, I, J, K, L, M, N, O, P, Q]], ClassTag[F[A, B, C, D, E, G, H, I, J, K, L, M, N, O, P, Q]]) => ZTemporalCodec[F[A, B, C, D, E, G, H, I, J, K, L, M, N, O, P, Q]]

Attributes

Inherited from:
LowPriorityZTemporalCodecInstances0 (hidden)
given kind17: [F[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _], A, B, C, D, E, G, H, I, J, K, L, M, N, O, P, Q, R] => (ZTemporalCodec[A], ZTemporalCodec[B], ZTemporalCodec[C], ZTemporalCodec[D], ZTemporalCodec[E], ZTemporalCodec[G], ZTemporalCodec[H], ZTemporalCodec[I], ZTemporalCodec[J], ZTemporalCodec[K], ZTemporalCodec[L], ZTemporalCodec[M], ZTemporalCodec[N], ZTemporalCodec[O], ZTemporalCodec[P], ZTemporalCodec[Q], ZTemporalCodec[R], JsonEncoder[F[A, B, C, D, E, G, H, I, J, K, L, M, N, O, P, Q, R]], JsonDecoder[F[A, B, C, D, E, G, H, I, J, K, L, M, N, O, P, Q, R]], ClassTag[F[A, B, C, D, E, G, H, I, J, K, L, M, N, O, P, Q, R]]) => ZTemporalCodec[F[A, B, C, D, E, G, H, I, J, K, L, M, N, O, P, Q, R]]

Attributes

Inherited from:
LowPriorityZTemporalCodecInstances0 (hidden)
given kind18: [F[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _], A, B, C, D, E, G, H, I, J, K, L, M, N, O, P, Q, R, S] => (ZTemporalCodec[A], ZTemporalCodec[B], ZTemporalCodec[C], ZTemporalCodec[D], ZTemporalCodec[E], ZTemporalCodec[G], ZTemporalCodec[H], ZTemporalCodec[I], ZTemporalCodec[J], ZTemporalCodec[K], ZTemporalCodec[L], ZTemporalCodec[M], ZTemporalCodec[N], ZTemporalCodec[O], ZTemporalCodec[P], ZTemporalCodec[Q], ZTemporalCodec[R], ZTemporalCodec[S], JsonEncoder[F[A, B, C, D, E, G, H, I, J, K, L, M, N, O, P, Q, R, S]], JsonDecoder[F[A, B, C, D, E, G, H, I, J, K, L, M, N, O, P, Q, R, S]], ClassTag[F[A, B, C, D, E, G, H, I, J, K, L, M, N, O, P, Q, R, S]]) => ZTemporalCodec[F[A, B, C, D, E, G, H, I, J, K, L, M, N, O, P, Q, R, S]]

Attributes

Inherited from:
LowPriorityZTemporalCodecInstances0 (hidden)
given kind19: [F[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _], A, B, C, D, E, G, H, I, J, K, L, M, N, O, P, Q, R, S, T] => (ZTemporalCodec[A], ZTemporalCodec[B], ZTemporalCodec[C], ZTemporalCodec[D], ZTemporalCodec[E], ZTemporalCodec[G], ZTemporalCodec[H], ZTemporalCodec[I], ZTemporalCodec[J], ZTemporalCodec[K], ZTemporalCodec[L], ZTemporalCodec[M], ZTemporalCodec[N], ZTemporalCodec[O], ZTemporalCodec[P], ZTemporalCodec[Q], ZTemporalCodec[R], ZTemporalCodec[S], ZTemporalCodec[T], JsonEncoder[F[A, B, C, D, E, G, H, I, J, K, L, M, N, O, P, Q, R, S, T]], JsonDecoder[F[A, B, C, D, E, G, H, I, J, K, L, M, N, O, P, Q, R, S, T]], ClassTag[F[A, B, C, D, E, G, H, I, J, K, L, M, N, O, P, Q, R, S, T]]) => ZTemporalCodec[F[A, B, C, D, E, G, H, I, J, K, L, M, N, O, P, Q, R, S, T]]

Attributes

Inherited from:
LowPriorityZTemporalCodecInstances0 (hidden)
given kind2: [F[_, _], A, B] => (ZTemporalCodec[A], ZTemporalCodec[B], JsonEncoder[F[A, B]], JsonDecoder[F[A, B]], ClassTag[F[A, B]]) => ZTemporalCodec[F[A, B]]

Attributes

Inherited from:
LowPriorityZTemporalCodecInstances0 (hidden)
given kind20: [F[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _], A, B, C, D, E, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U] => (ZTemporalCodec[A], ZTemporalCodec[B], ZTemporalCodec[C], ZTemporalCodec[D], ZTemporalCodec[E], ZTemporalCodec[G], ZTemporalCodec[H], ZTemporalCodec[I], ZTemporalCodec[J], ZTemporalCodec[K], ZTemporalCodec[L], ZTemporalCodec[M], ZTemporalCodec[N], ZTemporalCodec[O], ZTemporalCodec[P], ZTemporalCodec[Q], ZTemporalCodec[R], ZTemporalCodec[S], ZTemporalCodec[T], ZTemporalCodec[U], JsonEncoder[F[A, B, C, D, E, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U]], JsonDecoder[F[A, B, C, D, E, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U]], ClassTag[F[A, B, C, D, E, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U]]) => ZTemporalCodec[F[A, B, C, D, E, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U]]

Attributes

Inherited from:
LowPriorityZTemporalCodecInstances0 (hidden)
given kind21: [F[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _], A, B, C, D, E, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V] => (ZTemporalCodec[A], ZTemporalCodec[B], ZTemporalCodec[C], ZTemporalCodec[D], ZTemporalCodec[E], ZTemporalCodec[G], ZTemporalCodec[H], ZTemporalCodec[I], ZTemporalCodec[J], ZTemporalCodec[K], ZTemporalCodec[L], ZTemporalCodec[M], ZTemporalCodec[N], ZTemporalCodec[O], ZTemporalCodec[P], ZTemporalCodec[Q], ZTemporalCodec[R], ZTemporalCodec[S], ZTemporalCodec[T], ZTemporalCodec[U], ZTemporalCodec[V], JsonEncoder[F[A, B, C, D, E, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V]], JsonDecoder[F[A, B, C, D, E, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V]], ClassTag[F[A, B, C, D, E, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V]]) => ZTemporalCodec[F[A, B, C, D, E, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V]]

Attributes

Inherited from:
LowPriorityZTemporalCodecInstances0 (hidden)
given kind22: [F[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _], A, B, C, D, E, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W] => (ZTemporalCodec[A], ZTemporalCodec[B], ZTemporalCodec[C], ZTemporalCodec[D], ZTemporalCodec[E], ZTemporalCodec[G], ZTemporalCodec[H], ZTemporalCodec[I], ZTemporalCodec[J], ZTemporalCodec[K], ZTemporalCodec[L], ZTemporalCodec[M], ZTemporalCodec[N], ZTemporalCodec[O], ZTemporalCodec[P], ZTemporalCodec[Q], ZTemporalCodec[R], ZTemporalCodec[S], ZTemporalCodec[T], ZTemporalCodec[U], ZTemporalCodec[V], ZTemporalCodec[W], JsonEncoder[F[A, B, C, D, E, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W]], JsonDecoder[F[A, B, C, D, E, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W]], ClassTag[F[A, B, C, D, E, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W]]) => ZTemporalCodec[F[A, B, C, D, E, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W]]

Attributes

Inherited from:
LowPriorityZTemporalCodecInstances0 (hidden)
given kind3: [F[_, _, _], A, B, C] => (ZTemporalCodec[A], ZTemporalCodec[B], ZTemporalCodec[C], JsonEncoder[F[A, B, C]], JsonDecoder[F[A, B, C]], ClassTag[F[A, B, C]]) => ZTemporalCodec[F[A, B, C]]

Attributes

Inherited from:
LowPriorityZTemporalCodecInstances0 (hidden)
given kind4: [F[_, _, _, _], A, B, C, D] => (ZTemporalCodec[A], ZTemporalCodec[B], ZTemporalCodec[C], ZTemporalCodec[D], JsonEncoder[F[A, B, C, D]], JsonDecoder[F[A, B, C, D]], ClassTag[F[A, B, C, D]]) => ZTemporalCodec[F[A, B, C, D]]

Attributes

Inherited from:
LowPriorityZTemporalCodecInstances0 (hidden)
given kind5: [F[_, _, _, _, _], A, B, C, D, E] => (ZTemporalCodec[A], ZTemporalCodec[B], ZTemporalCodec[C], ZTemporalCodec[D], ZTemporalCodec[E], JsonEncoder[F[A, B, C, D, E]], JsonDecoder[F[A, B, C, D, E]], ClassTag[F[A, B, C, D, E]]) => ZTemporalCodec[F[A, B, C, D, E]]

Attributes

Inherited from:
LowPriorityZTemporalCodecInstances0 (hidden)
given kind6: [F[_, _, _, _, _, _], A, B, C, D, E, G] => (ZTemporalCodec[A], ZTemporalCodec[B], ZTemporalCodec[C], ZTemporalCodec[D], ZTemporalCodec[E], ZTemporalCodec[G], JsonEncoder[F[A, B, C, D, E, G]], JsonDecoder[F[A, B, C, D, E, G]], ClassTag[F[A, B, C, D, E, G]]) => ZTemporalCodec[F[A, B, C, D, E, G]]

Attributes

Inherited from:
LowPriorityZTemporalCodecInstances0 (hidden)
given kind7: [F[_, _, _, _, _, _, _], A, B, C, D, E, G, H] => (ZTemporalCodec[A], ZTemporalCodec[B], ZTemporalCodec[C], ZTemporalCodec[D], ZTemporalCodec[E], ZTemporalCodec[G], ZTemporalCodec[H], JsonEncoder[F[A, B, C, D, E, G, H]], JsonDecoder[F[A, B, C, D, E, G, H]], ClassTag[F[A, B, C, D, E, G, H]]) => ZTemporalCodec[F[A, B, C, D, E, G, H]]

Attributes

Inherited from:
LowPriorityZTemporalCodecInstances0 (hidden)
given kind8: [F[_, _, _, _, _, _, _, _], A, B, C, D, E, G, H, I] => (ZTemporalCodec[A], ZTemporalCodec[B], ZTemporalCodec[C], ZTemporalCodec[D], ZTemporalCodec[E], ZTemporalCodec[G], ZTemporalCodec[H], ZTemporalCodec[I], JsonEncoder[F[A, B, C, D, E, G, H, I]], JsonDecoder[F[A, B, C, D, E, G, H, I]], ClassTag[F[A, B, C, D, E, G, H, I]]) => ZTemporalCodec[F[A, B, C, D, E, G, H, I]]

Attributes

Inherited from:
LowPriorityZTemporalCodecInstances0 (hidden)
given kind9: [F[_, _, _, _, _, _, _, _, _], A, B, C, D, E, G, H, I, J] => (ZTemporalCodec[A], ZTemporalCodec[B], ZTemporalCodec[C], ZTemporalCodec[D], ZTemporalCodec[E], ZTemporalCodec[G], ZTemporalCodec[H], ZTemporalCodec[I], ZTemporalCodec[J], JsonEncoder[F[A, B, C, D, E, G, H, I, J]], JsonDecoder[F[A, B, C, D, E, G, H, I, J]], ClassTag[F[A, B, C, D, E, G, H, I, J]]) => ZTemporalCodec[F[A, B, C, D, E, G, H, I, J]]

Attributes

Inherited from:
LowPriorityZTemporalCodecInstances0 (hidden)