SchemaFor

com.sksamuel.avro4s.SchemaFor
See theSchemaFor companion trait

Attributes

Companion
trait
Graph
Supertypes
trait AutoDerivation[SchemaFor]
trait Derivation[SchemaFor]
trait SealedTraitDerivation
trait CommonDerivation[SchemaFor]
trait TupleSchemas
trait EnumSchemas
class Object
trait Matchable
class Any
Show all
Self type
SchemaFor.type

Members list

Type members

Inherited types

type Typeclass[T] = TypeClass[T]

Attributes

Inherited from:
CommonDerivation

Value members

Concrete methods

def apply[T](s: Schema): SchemaFor[T]

Returns a SchemaFor that returns the given schema.

Returns a SchemaFor that returns the given schema.

Attributes

def apply[T](using schemaFor: SchemaFor[T]): SchemaFor[T]
def from[T](f: => Schema): SchemaFor[T]

Inherited methods

inline def `getParams__`[T, Labels <: Tuple, Params <: Tuple](annotations: Map[String, List[Any]], inheritedAnnotations: Map[String, List[Any]], typeAnnotations: Map[String, List[Any]], repeated: Map[String, Boolean], defaults: Map[String, Option[() => Any]], idx: Int): List[Param[Typeclass, T]]

Attributes

Inherited from:
CommonDerivation
inline override protected def deriveSubtype[s](m: Of[s]): TypeClass[s]

Attributes

Definition Classes
Derivation -> SealedTraitDerivation
Inherited from:
Derivation
inline def derived[A](using Of[A]): TypeClass[A]

Attributes

Inherited from:
Derivation
inline def derivedMirror[A](using mirror: Of[A]): TypeClass[A]

Attributes

Inherited from:
Derivation
inline def derivedMirrorProduct[A](product: ProductOf[A]): TypeClass[A]

Attributes

Inherited from:
CommonDerivation
inline def derivedMirrorSum[A](sum: SumOf[A]): TypeClass[A]

Attributes

Inherited from:
Derivation
def fixedStringSchemaFor(name: String, size: Int): SchemaFor[String]

Attributes

Inherited from:
StringSchemas
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]]

Attributes

Inherited from:
CommonDerivation
inline def getParams_[T, Labels <: Tuple, Params <: Tuple](annotations: Map[String, List[Any]], inheritedAnnotations: Map[String, List[Any]], typeAnnotations: Map[String, List[Any]], repeated: Map[String, Boolean], idx: Int): List[Param[Typeclass, T]]

Attributes

Inherited from:
CommonDerivation
def join[T](ctx: CaseClass[SchemaFor, T]): SchemaFor[T]

Attributes

Inherited from:
MagnoliaDerivedSchemas
inline protected def sealedTraitFromMirror[A](m: SumOf[A]): SealedTrait[Typeclass, A]

Attributes

Inherited from:
SealedTraitDerivation
override def split[T](ctx: SealedTrait[SchemaFor, T]): SchemaFor[T]

Attributes

Definition Classes
MagnoliaDerivedSchemas -> Derivation
Inherited from:
MagnoliaDerivedSchemas
transparent inline def subtypes[T, SubtypeTuple <: Tuple](m: SumOf[T], idx: Int): List[Subtype[Typeclass, T, _]]

Attributes

Inherited from:
Derivation
transparent inline protected def subtypesFromMirror[A, SubtypeTuple <: Tuple](m: SumOf[A], idx: Int): List[Subtype[Typeclass, A, _]]

Attributes

Inherited from:
SealedTraitDerivation

Givens

Inherited givens

given ByteArraySchemaFor: SchemaFor[Array[Byte]]

Attributes

Inherited from:
ByteIterableSchemas
given ByteListSchemaFor: SchemaFor[List[Byte]]

Attributes

Inherited from:
ByteIterableSchemas
given ByteSeqSchemaFor: SchemaFor[Seq[Byte]]

Attributes

Inherited from:
ByteIterableSchemas
given ByteVectorSchemaFor: SchemaFor[Vector[Byte]]

Attributes

Inherited from:
ByteIterableSchemas
given DateSchemaFor: SchemaFor[Date]

Attributes

Inherited from:
TemporalSchemas
given InstantSchemaFor: SchemaFor[Instant]

Attributes

Inherited from:
TemporalSchemas
given LocalDateSchemaFor: SchemaFor[LocalDate]

Attributes

Inherited from:
TemporalSchemas
given LocalDateTimeSchemaFor: SchemaFor[LocalDateTime]

Attributes

Inherited from:
TemporalSchemas
given LocalTimeSchemaFor: SchemaFor[LocalTime]

Attributes

Inherited from:
TemporalSchemas
given OffsetDateTimeSchemaFor: SchemaFor[OffsetDateTime]

Attributes

Inherited from:
TemporalSchemas
given StringSchemaFor: SchemaFor[String]

Attributes

Inherited from:
StringSchemas
given TimestampSchemaFor: SchemaFor[Timestamp]

Attributes

Inherited from:
TemporalSchemas
inline given autoDerived[A](using Of[A]): TypeClass[A]

Attributes

Inherited from:
AutoDerivation
given given_SchemaFor_Array[T](using schemaFor: SchemaFor[T]): SchemaFor[Array[T]]

Attributes

Inherited from:
CollectionSchemas
given given_SchemaFor_BigDecimal(using sp: ScalePrecision): SchemaFor[BigDecimal]

Attributes

Inherited from:
BigDecimalSchemas

Attributes

Inherited from:
PrimitiveSchemas

Attributes

Inherited from:
PrimitiveSchemas

Attributes

Inherited from:
PrimitiveSchemas

Attributes

Inherited from:
StringSchemas

Attributes

Inherited from:
TemporalSchemas

Attributes

Inherited from:
PrimitiveSchemas
given given_SchemaFor_Either[A, B](using leftSchemaFor: SchemaFor[A], rightSchemaFor: SchemaFor[B]): SchemaFor[Either[A, B]]

Attributes

Inherited from:
EitherSchemas

Attributes

Inherited from:
PrimitiveSchemas
given given_SchemaFor_List[T](using schemaFor: SchemaFor[T]): SchemaFor[List[T]]

Attributes

Inherited from:
CollectionSchemas

Attributes

Inherited from:
PrimitiveSchemas
given given_SchemaFor_Map[V](using schemaFor: SchemaFor[V]): SchemaFor[Map[String, V]]

Attributes

Inherited from:
CollectionSchemas

Attributes

Inherited from:
OptionSchemas
given given_SchemaFor_Option[T](using schemaFor: SchemaFor[T]): SchemaFor[Option[T]]

Attributes

Inherited from:
OptionSchemas
given given_SchemaFor_Seq[T](using schemaFor: SchemaFor[T]): SchemaFor[Seq[T]]

Attributes

Inherited from:
CollectionSchemas
given given_SchemaFor_Set[T](using SchemaFor[T]): SchemaFor[Set[T]]

Attributes

Inherited from:
CollectionSchemas

Attributes

Inherited from:
PrimitiveSchemas
given given_SchemaFor_T[T <: Enum[_]](using tag: ClassTag[T]): SchemaFor[T]

Attributes

Inherited from:
EnumSchemas
given given_SchemaFor_Tuple2[A, B](using a: SchemaFor[A], b: SchemaFor[B]): SchemaFor[(A, B)]

Attributes

Inherited from:
TupleSchemas
given given_SchemaFor_Tuple3[A, B, C](using a: SchemaFor[A], b: SchemaFor[B], c: SchemaFor[C]): SchemaFor[(A, B, C)]

Attributes

Inherited from:
TupleSchemas
given given_SchemaFor_Tuple4[A, B, C, D](using a: SchemaFor[A], b: SchemaFor[B], c: SchemaFor[C], d: SchemaFor[D]): SchemaFor[(A, B, C, D)]

Attributes

Inherited from:
TupleSchemas
given given_SchemaFor_Tuple5[A, B, C, D, E](using a: SchemaFor[A], b: SchemaFor[B], c: SchemaFor[C], d: SchemaFor[D], e: SchemaFor[E]): SchemaFor[(A, B, C, D, E)]

Attributes

Inherited from:
TupleSchemas
given given_SchemaFor_Tuple6[A, B, C, D, E, F](using a: SchemaFor[A], b: SchemaFor[B], c: SchemaFor[C], d: SchemaFor[D], e: SchemaFor[E], f: SchemaFor[F]): SchemaFor[(A, B, C, D, E, F)]

Attributes

Inherited from:
TupleSchemas

Attributes

Inherited from:
StringSchemas

Attributes

Inherited from:
StringSchemas
given given_SchemaFor_Vector[T](using SchemaFor[T]): SchemaFor[Vector[T]]

Attributes

Inherited from:
CollectionSchemas
given intSchemaFor: SchemaFor[Int]

Attributes

Inherited from:
PrimitiveSchemas