sealed trait Schema[A] extends AnyRef

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Schema
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Abstract Value Members

  1. abstract def hints: Hints
  2. abstract def shapeId: ShapeId

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def addHints(hints: Hints): Schema[A]
  5. final def addHints(hints: Hint*): Schema[A]
  6. final def addMemberHints(hints: Hints): Schema[A]
  7. final def addMemberHints(hints: Hint*): Schema[A]
  8. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  9. final def biject[B](to: (A) => B)(from: (B) => A): Schema[B]
  10. final def biject[B](bijection: Bijection[A, B]): Schema[B]
  11. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  12. final def compile[F[_]](fk: ~>[Schema, F]): F[A]
  13. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  15. final def error(unlift: (A) => Throwable)(lift: PartialFunction[Throwable, A]): ErrorSchema[A]

    Turns this schema into an error schema.

  16. final def field[Struct]: PartiallyAppliedField[Struct, A]
  17. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  18. final def findPayload(find: (Field[_, _]) => Boolean): SchemaPartition[A]

    Finds the first field that matches the criteria used, and applies a bijection between the schema it holds and partial data, which ensures for the field's schema to be used as "top level" when decoding "payloads".

    Finds the first field that matches the criteria used, and applies a bijection between the schema it holds and partial data, which ensures for the field's schema to be used as "top level" when decoding "payloads".

    NB : a "payload" is typically a whole set of data, without a typical field-based splitting into subparts. This can be, for instance, an http body.

  19. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  20. final def getDefault: Option[Document]
  21. final def getDefaultValue: Option[A]
  22. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  23. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  24. final def isOption: Boolean
  25. final def isPrimitive[P](prim: Primitive[P]): Boolean

    Finds whether a schema (or the underlying schema in the case of bijections/surjections, etc) is a primitive of a certain type.

  26. final def isUnit: Boolean

    Checks whether a schema is Unit or an empty structure

  27. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  28. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  29. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  30. final def oneOf[Union]: PartiallyAppliedOneOf[Union, A]
  31. final def option: Schema[Option[A]]
  32. final def optional[Struct]: PartiallyAppliedOptional[Struct, A]
  33. final def partition(filter: (Field[_, _]) => Boolean): SchemaPartition[A]

    When applied on a structure schema, creates a schema that, when compiled into a codec, will only encode/decode a subset of the data, based on the hints of each field.

    When applied on a structure schema, creates a schema that, when compiled into a codec, will only encode/decode a subset of the data, based on the hints of each field.

    This can be used to only encode some fields of the data into the http body

    Returns a SchemaPartition that indicates whether : * no field match the condition * some fields match the condition * all fields match the condition

  34. final def refined[B]: PartiallyAppliedRefinement[A, B]
  35. final def required[Struct]: PartiallyAppliedRequired[Struct, A]
  36. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  37. def toString(): String
    Definition Classes
    AnyRef → Any
  38. final def transformHintsLocally(f: (Hints) => Hints): Schema[A]
  39. final def transformHintsTransitively(f: (Hints) => Hints): Schema[A]
  40. final def validated[C](c: C)(implicit constraint: Simple[C, A]): Schema[A]
  41. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  42. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  43. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  44. final def withId(namespace: String, name: String): Schema[A]
  45. final def withId(newId: ShapeId): Schema[A]

Inherited from AnyRef

Inherited from Any

Ungrouped