erules.core

package erules.core

Members list

Concise view

Type members

Classlikes

case class EngineResult[T](data: T, verdict: RuleResultsInterpreterVerdict[T]) extends Serializable

Describes the engine output.

Describes the engine output.

Attributes

T

Data type

data

Data used for the evaluation

verdict

Final engine verdict, the decision taken by then interpreter using the report.

Companion:
object
Graph
Supertypes
trait Product
trait Equals
trait Serializable
class Object
trait Matchable
class Any

Attributes

Companion:
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
final case class EvalReason(message: String) extends AnyVal

Value class for a simple reason message.

Value class for a simple reason message.

Attributes

message

reason message

Companion:
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class AnyVal
trait Matchable
class Any
object EvalReason

Attributes

Companion:
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
sealed trait Rule[+F[_], -T] extends Serializable

Attributes

Companion:
object
Graph
Supertypes
trait Serializable
class Object
trait Matchable
class Any
object Rule

Attributes

Companion:
trait
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
Rule.type
case class RuleResult[-T, +V <: RuleVerdict](rule: AnyTypedRule[T], verdict: EitherThrow[V], executionTime: Option[FiniteDuration]) extends Serializable

Attributes

Companion:
object
Graph
Supertypes
trait Product
trait Equals
trait Serializable
class Object
trait Matchable
class Any
object RuleResult

Attributes

Companion:
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Attributes

Companion:
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
sealed trait RuleResultsInterpreterVerdict[-T] extends Serializable

ADT to define the possible responses of the engine evaluation.

ADT to define the possible responses of the engine evaluation.

Attributes

Companion:
object
Graph
Supertypes
trait Serializable
class Object
trait Matchable
class Any
Known subtypes
class Allowed[T]
class Denied[T]

Attributes

Companion:
trait
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
sealed trait RuleVerdict extends Serializable

ADT to define the possible output of a Rule evaluation.

ADT to define the possible output of a Rule evaluation.

Attributes

Companion:
object
Graph
Supertypes
trait Serializable
class Object
trait Matchable
class Any
Known subtypes
trait Allow
trait Deny
trait Ignore
Self type
RuleVerdictBecauseSupport[RuleVerdict]

Attributes

Companion:
trait
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
case class RulesEngine[F[_], T]

Attributes

Companion:
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Attributes

Companion:
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type

Types

type AnyF[_] = Any
type AnyRule = Rule[AnyF, Nothing]
type AnyTypedRule[-T] = Rule[AnyF, T]
type EitherThrow[+T] = Either[Throwable, T]
type PureRule[-T] = Rule[Id, T]
type PureRulesEngine[T] = RulesEngine[Id, T]
type RuleIO[-T] = Rule[IO, T]
type RulesEngineIO[T] = RulesEngine[IO, T]