fields.value.syntax.CommonSyntax
See theCommonSyntax companion trait
object CommonSyntax extends CommonSyntax
Attributes
- Companion
- trait
- Source
- all.scala
- Graph
-
- Supertypes
-
trait CommonSyntaxtrait PolicyKSyntaxtrait ValidatedSyntaxtrait RuleSyntaxtrait PolicySyntaxtrait FieldSyntaxclass Objecttrait Matchableclass AnyShow all
- Self type
-
CommonSyntax.type
Members list
Type members
Inherited types
Attributes
- Inherited from:
- CommonSyntax
- Source
- all.scala
Attributes
- Inherited from:
- CommonSyntax
- Source
- all.scala
Value members
Inherited fields
Attributes
- Inherited from:
- CommonSyntax
- Source
- all.scala
Attributes
- Inherited from:
- CommonSyntax
- Source
- all.scala
Extensions
Inherited extensions
extension [P](field: Field[P])
Returns subfield using selector function to extract value and as path
Returns subfield using selector function to extract value and as path
Example
scala> val request = Request(User("ann"))
scala> val field = Field.from(request)
val field: fields.Field[Request] = request:Request(User(ann))
scala> field.sub(_.user.name)
val res1: fields.Field[String] = request.user.name:ann
Attributes
- Inherited from:
- FieldSyntax
- Source
- FieldSyntax.scala
extension (field: Field.type)
Returns fields.Field that has provided value and infers its fields.FieldPath from field selects
Returns fields.Field that has provided value and infers its fields.FieldPath from field selects
Example:
scala> val request = Request(User("ann"))
val request: Request = Request(User(ann))
scala> val field = Field.from(request.user.name)
val field: fields.Field[String] = request.user.name:ann
Attributes
- Inherited from:
- FieldSyntax
- Source
- FieldSyntax.scala
Similar to Field.from but drops first selector path
Similar to Field.from but drops first selector path
Example:
scala> val request = Request(User("ann"))
val request: Request = Request(User(ann))
scala> val field = Field.sub(request.user.name)
val field: fields.Field[String] = user.name:ann
Attributes
- Inherited from:
- FieldSyntax
- Source
- FieldSyntax.scala
Implicits
Inherited implicits
Attributes
- Inherited from:
- PolicyKSyntax
- Source
- PolicyK.scala
Attributes
- Inherited from:
- PolicySyntax
- Source
- PolicySyntax.scala
final implicit def toRuleSequenceOps[F[_], V[_], E](rules: Iterable[RuleK[F, V, E]]): RuleSequenceOps[F, V, E]
Attributes
- Inherited from:
- RuleSyntax
- Source
- RuleSyntax.scala
final implicit def toRuleValidationOps[F[_], V[_], E](rule: RuleK[F, V, E]): RuleValidationOps[F, V, E]
Attributes
- Inherited from:
- RuleSyntax
- Source
- RuleSyntax.scala
Attributes
- Inherited from:
- ValidatedSyntax
- Source
- ValidatedSyntax.scala
Attributes
- Inherited from:
- ValidatedSyntax
- Source
- ValidatedSyntax.scala
Attributes
- Inherited from:
- ValidatedSyntax
- Source
- ValidatedSyntax.scala
In this article