c

com.avsystem.commons.rest

RestDataCompanion

abstract class RestDataCompanion[T] extends HasGenCodec[T] with DefaultRestImplicits

Base class for companion objects of ADTs (case classes, objects, sealed hierarchies) which are used as parameter or result types in REST API traits. Automatically provides instances of GenCodec and RestSchema.

Example:
  1. case class User(id: String, name: String, birthYear: Int)
    object User extends RestDataCompanion[User]
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. RestDataCompanion
  2. DefaultRestImplicits
  3. GenCodecRestImplicits
  4. FloatingPointRestImplicits
  5. FutureRestImplicits
  6. HasGenCodec
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new RestDataCompanion()(implicit macroRestStructure: MacroGenerated[DefaultRestImplicits, RestStructure[T]], macroCodec: MacroGenerated[Any, GenCodec[T]])

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 asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. implicit def asRawJsonNotFound[T](implicit forGenCodec: ImplicitNotFound[GenCodec[T]]): ImplicitNotFound[AsRaw[JsonValue, T]]
    Definition Classes
    GenCodecRestImplicits
    Annotations
    @implicitNotFound( ... )
  6. implicit def asRealJsonNotFound[T](implicit forGenCodec: ImplicitNotFound[GenCodec[T]]): ImplicitNotFound[AsReal[JsonValue, T]]
    Definition Classes
    GenCodecRestImplicits
    Annotations
    @implicitNotFound( ... )
  7. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  8. implicit val codec: GenCodec[T]
    Definition Classes
    HasGenCodec
  9. implicit final val doubleHeaderValueAsRealRaw: AsRawReal[HeaderValue, Double]
    Definition Classes
    FloatingPointRestImplicits
  10. implicit final val doublePathValueAsRealRaw: AsRawReal[PathValue, Double]
    Definition Classes
    FloatingPointRestImplicits
  11. implicit final val doubleQueryValueAsRealRaw: AsRawReal[QueryValue, Double]
    Definition Classes
    FloatingPointRestImplicits
  12. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  14. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. implicit final val floatHeaderValueAsRealRaw: AsRawReal[HeaderValue, Float]
    Definition Classes
    FloatingPointRestImplicits
  16. implicit final val floatPathValueAsRealRaw: AsRawReal[PathValue, Float]
    Definition Classes
    FloatingPointRestImplicits
  17. implicit final val floatQueryValueAsRealRaw: AsRawReal[QueryValue, Float]
    Definition Classes
    FloatingPointRestImplicits
  18. implicit def futureAsRawNotFound[T](implicit forResponse: ImplicitNotFound[AsRaw[RestResponse, T]]): ImplicitNotFound[AsRaw[Async[RestResponse], commons.Try[commons.Future[T]]]]
    Definition Classes
    FutureRestImplicits
    Annotations
    @implicitNotFound( "#{forResponse}" )
  19. implicit def futureAsRealNotFound[T](implicit forResponse: ImplicitNotFound[AsReal[RestResponse, T]]): ImplicitNotFound[AsReal[Async[RestResponse], commons.Try[commons.Future[T]]]]
    Definition Classes
    FutureRestImplicits
    Annotations
    @implicitNotFound( "#{forResponse}" )
  20. implicit def futureFromAsyncResp[T](implicit respAsReal: AsReal[RestResponse, T]): AsReal[Async[RestResponse], commons.Try[commons.Future[T]]]
    Definition Classes
    FutureRestImplicits
  21. implicit def futureHttpResponseType[T]: HttpResponseType[commons.Future[T]]
    Definition Classes
    FutureRestImplicits
  22. implicit def futureRestResultType[T](implicit arg0: RestResponses[T]): RestResultType[commons.Future[T]]
    Definition Classes
    FutureRestImplicits
  23. implicit def futureRestResultTypeNotFound[T](implicit forRestResponses: ImplicitNotFound[RestResponses[T]]): ImplicitNotFound[RestResultType[commons.Future[T]]]
    Definition Classes
    FutureRestImplicits
    Annotations
    @implicitNotFound( "#{forRestResponses}" )
  24. implicit def futureToAsyncResp[T](implicit respAsRaw: AsRaw[RestResponse, T]): AsRaw[Async[RestResponse], commons.Try[commons.Future[T]]]
    Definition Classes
    FutureRestImplicits
  25. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  26. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  27. implicit def headerValueDefaultAsRealRaw[T](implicit arg0: GenKeyCodec[T]): Fallback[AsRawReal[HeaderValue, T]]
    Definition Classes
    GenCodecRestImplicits
  28. implicit def httpResponseTypeNotFound[T]: ImplicitNotFound[HttpResponseType[T]]
    Definition Classes
    FutureRestImplicits
    Annotations
    @implicitNotFound( ... )
  29. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  30. implicit def jsonValueDefaultAsRealRaw[T](implicit arg0: GenCodec[T]): Fallback[AsRawReal[JsonValue, T]]
    Definition Classes
    GenCodecRestImplicits
  31. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  32. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  33. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  34. implicit def pathValueFallbackAsRealRaw[T](implicit arg0: GenKeyCodec[T]): Fallback[AsRawReal[PathValue, T]]
    Definition Classes
    GenCodecRestImplicits
  35. implicit def queryValueDefaultAsRealRaw[T](implicit arg0: GenKeyCodec[T]): Fallback[AsRawReal[QueryValue, T]]
    Definition Classes
    GenCodecRestImplicits
  36. implicit def rawRestAsRawNotFound[T]: ImplicitNotFound[AsRaw[RawRest, T]]
    Definition Classes
    DefaultRestImplicits
    Annotations
    @implicitNotFound( ... )
  37. implicit def rawRestAsRealNotFound[T]: ImplicitNotFound[AsReal[RawRest, T]]
    Definition Classes
    DefaultRestImplicits
    Annotations
    @implicitNotFound( ... )
  38. implicit lazy val restSchema: RestSchema[T]
  39. implicit lazy val restStructure: RestStructure[T]
  40. implicit def schemaNotFound[T]: ImplicitNotFound[RestSchema[T]]
    Definition Classes
    DefaultRestImplicits
    Annotations
    @implicitNotFound( ... )
  41. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  42. def toString(): String
    Definition Classes
    AnyRef → Any
  43. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  44. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  45. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )

Inherited from DefaultRestImplicits

Inherited from GenCodecRestImplicits

Inherited from FutureRestImplicits

Inherited from HasGenCodec[T]

Inherited from AnyRef

Inherited from Any

Ungrouped