FieldDsl

org.hungerford.generic.schema.product.field.FieldDsl
trait FieldDsl

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object exports.type

Members list

Concise view

Type members

Classlikes

class FieldSchemaRebuilder[Builder, T, F, N <: FieldName, S](builder: Builder, field: Field[T, F, N, S])

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
class FromPrimitive[T, F]()

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
class FromSchema[T, F]()

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Extensions

Extensions

extension [T, F, N <: FieldName, S](field: Field[T, F, N, S])
def apply[Sel <: Tuple, Inner](selector: Selector[Sel])(using cr: Aux[Field[T, F, N, S], Sel, Inner]): Inner
extension (field: Field.type)
def builder[T, F]: FieldBuilder[T, F, Unit, Unit, Nothing, Unit]
def fromSchema[T, F]: FromSchema[T, F]
def primitive[T, F]: FromPrimitive[T, F]
extension [T, F, N <: FieldName, S](field: Field[T, F, N, S])
def addExamples(exs: F*): Field[T, F, N, S]
def addValidators(vals: Validator[F]*): Field[T, F, N, S]
def modifyComponent[Sel <: Tuple, Inner](selector: Selector[Sel])(using cr: Aux[Field[T, F, N, S], Sel, Inner]): Updater[Field[T, F, N, S], Inner, Sel]
def modifySchema[NewS](modifier: Aux[F, S] => Aux[F, NewS]): Field[T, F, N, NewS]
def rebuild: FieldBuilder[T, F, N, Aux[F, S], S, T => F]
def rebuildSchema(using rb: SchemaRebuilder[F, S]): FieldSchemaRebuilder[Builder, T, F, N, S]
def withDefault(defaultValue: F): Field[T, F, N, S]
def withDescription(desc: String): Field[T, F, N, S]
def withExamples(exs: F*): Field[T, F, N, S]
def withName[N1 <: FieldName](name: N1): Field[T, F, N1, S]
def withSchema[S1](sch: Aux[F, S1]): Field[T, F, N, S1]
def withValidation(vals: Validator[F]*): Field[T, F, N, S]
def withoutDefault: Field[T, F, N, S]
def withoutDescription: Field[T, F, N, S]
def withoutExamples: Field[T, F, N, S]
def withoutValidation: Field[T, F, N, S]
extension [T, F, N <: FieldName](field: LazyField[T, F, N])
def addExamples(exs: F*): LazyField[T, F, N]
def addValidators(vals: Validator[F]*): LazyField[T, F, N]
def rebuild: FieldBuilder[T, F, N, Unit, Deferred, T => F]
def withDefault(defaultValue: F): LazyField[T, F, N]
def withDescription(desc: String): LazyField[T, F, N]
def withExamples(exs: F*): LazyField[T, F, N]
def withName[N1 <: FieldName](name: N1): LazyField[T, F, N1]
def withSchema[S](sch: Aux[F, S]): Field[T, F, N, S]
def withValidators(vals: Validator[F]*): LazyField[T, F, N]