t

play.api.libs.json

ConstraintWrites

trait ConstraintWrites extends AnyRef

Source
JsConstraints.scala
Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ConstraintWrites
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. def list[A](implicit writes: Writes[A]): Writes[List[A]]
  2. def map[A](implicit writes: Writes[A]): OWrites[Map[String, A]]
  3. def of[A](implicit w: Writes[A]): Writes[A]
  4. def optionWithNull[A](implicit wa: Writes[A]): Writes[Option[A]]

    Pure Option Writer[T] which writes "null" when None which is different from JsPath.writeNullable which omits the field when None

  5. def pruned[A]: Writes[A]
  6. def pure[A](fixed: => A)(implicit wrs: Writes[A]): [JsValue]
  7. def seq[A](implicit writes: Writes[A]): Writes[Seq[A]]
  8. def set[A](implicit writes: Writes[A]): Writes[Set[A]]

Deprecated Value Members

  1. def pruned[A](implicit w: Writes[A]): Writes[A]
    Annotations
    @deprecated
    Deprecated

    (Since version 2.8.0) Use pruned without Writes[A]