package semiauto
Semi-automatic format derivation.
This object provides helpers for creating org.scanamo.DynamoFormat instances for case classes
Typical usage will look like the following:
import org.scanamo.semiauto._ case class Bear(name: String, favouriteFood: String) object Bear { implicit val formatBear: DynamoFormat[Bear] = deriveDynamoFormat[Bear] }
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- semiauto
- SemiAutoDerivation
- DerivedDynamoFormat
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Type Members
-
trait
CoProductDynamoFormat[T] extends DynamoFormat[T]
- Definition Classes
- DerivedDynamoFormat
-
trait
ConstructedDynamoFormat[T] extends AnyRef
- Definition Classes
- DerivedDynamoFormat
-
trait
InvalidConstructedDynamoFormat[T] extends ConstructedDynamoFormat[T]
- Definition Classes
- DerivedDynamoFormat
-
trait
ValidConstructedDynamoFormat[T] extends ConstructedDynamoFormat[T]
- Definition Classes
- DerivedDynamoFormat
-
type
NotSymbol[T] = <:!<[T, Symbol]
- Definition Classes
- DerivedDynamoFormat
-
type
ValidatedPropertiesError[T] = Validated[InvalidPropertiesError, T]
- Definition Classes
- DerivedDynamoFormat
Value Members
-
implicit
val
cnil: CoProductDynamoFormat[CNil]
- Definition Classes
- DerivedDynamoFormat
-
implicit
def
coproduct[K <: Symbol, V, T <: Coproduct](implicit headFormat: Lazy[DynamoFormat[V]], tailFormat: CoProductDynamoFormat[T], fieldWitness: Aux[K]): CoProductDynamoFormat[:+:[FieldType[K, V], T]]
- Definition Classes
- DerivedDynamoFormat
-
final
def
deriveDynamoFormat[A](implicit exported: Exported[DynamoFormat[A]]): DynamoFormat[A]
- Definition Classes
- SemiAutoDerivation
-
implicit
def
genericCoProduct[T, R](implicit gen: Aux[T, R], formatR: Lazy[CoProductDynamoFormat[R]]): Exported[DynamoFormat[T]]
- Definition Classes
- DerivedDynamoFormat
-
implicit
def
genericProduct[T, R](implicit arg0: NotSymbol[T], gen: Aux[T, R], formatR: Lazy[ValidConstructedDynamoFormat[R]]): Exported[DynamoFormat[T]]
- Definition Classes
- DerivedDynamoFormat
-
implicit
def
hcons[K <: Symbol, V, T <: HList](implicit headFormat: Lazy[DynamoFormat[V]], tailFormat: Lazy[ConstructedDynamoFormat[T]], fieldWitness: Aux[K]): ValidConstructedDynamoFormat[::[FieldType[K, V], T]]
- Definition Classes
- DerivedDynamoFormat
-
implicit
val
hnil: InvalidConstructedDynamoFormat[HNil]
- Definition Classes
- DerivedDynamoFormat