final case class Required[O, F[_], I](fieldName: String, base: F[I], extract: Extract[O, I], default: Option[I]) extends PropSchema[O, F, I] with Product with Serializable
Class describing a required property of a record.
- fieldName
The name of the property.
- base
Schema for the property's value type.
- extract
Extract lens from the record type to the property.
- default
Optional default value, for use in the case that a serialized form is missing the property.
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- Required
- Serializable
- Serializable
- Product
- Equals
- PropSchema
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
-
new
Required(fieldName: String, base: F[I], extract: Extract[O, I], default: Option[I])
- fieldName
The name of the property.
- base
Schema for the property's value type.
- extract
Extract lens from the record type to the property.
- default
Optional default value, for use in the case that a serialized form is missing the property.
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- val base: F[I]
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
- val default: Option[I]
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
val
extract: Extract[O, I]
- Definition Classes
- Required → PropSchema
-
val
fieldName: String
- Definition Classes
- Required → PropSchema
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
hfmap[G[_]](nt: ~>[F, G]): PropSchema[O, G, I]
- Definition Classes
- Required → PropSchema
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated
- Deprecated