Generator

kreuzberg.extras.forms.Generator
object Generator

Generator for Forms.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Generator.type

Members list

Type members

Classlikes

class Analyzer[Q <: Quotes](using val quotes: Q)

Helper for analyzing case classes for which we create Forms.

Helper for analyzing case classes for which we create Forms.

Attributes

Supertypes
class Object
trait Matchable
class Any

Value members

Concrete methods

inline def buildAllFieldValidator[T]: Validator[T]

Build a validator for all fields

Build a validator for all fields

Attributes

inline def buildDecoder[T]: (Array[String]) => DecodingResult[T]
inline def buildEncoder[T]: T => List[String]
inline def fetchMainAnnotations[T]: List[UseValidator[T]]

Fetch main "useValidator" Annotation if there is.

Fetch main "useValidator" Annotation if there is.

Attributes

inline def generate[T]: Form[T]

Generate a Form from an annotated case class.

Generate a Form from an annotated case class.

Attributes