Crate product_farm_core

Crate product_farm_core 

Source
Expand description

Product-FARM Core Domain Types

This crate defines the core domain types for the Product-FARM rule engine. All types are generic and domain-agnostic - specific domains (insurance, trading, etc.) are configured through DataTypes, Enums, Attributes, and Rules.

§Path Formats (Legacy Compatible)

  • Concrete Path: {productId}:{componentType}:{componentId}:{attributeName}

    • Example: insuranceV1:cover:basic:premium
  • Abstract Path: {productId}:abstract-path:{componentType}[:{componentId}]:{attributeName}

    • Example: insuranceV1:abstract-path:cover:premium
    • Example with component ID: insuranceV1:abstract-path:cover:basic:premium

Re-exports§

pub use types::*;
pub use product::*;
pub use attribute::*;
pub use rule::*;
pub use datatype::*;
pub use functionality::*;
pub use template::*;
pub use error::*;
pub use value::*;
pub use builders::*;
pub use validation::*;
pub use clone::*;
pub use evaluator::*;

Modules§

attribute
Attribute definitions - both abstract (templates) and concrete (instances)
builders
Rule builder helpers for common patterns
clone
Deep clone operations for Product and all related entities
datatype
DataType definitions - dynamically configured types
error
Error types for the Product-FARM system
evaluator
LLM Evaluator Trait
functionality
Product Functionality - groupings of related attributes within a product
product
Product entity and lifecycle management
rule
Rule definitions - JSON Logic expressions with input/output mappings
template
Product Template Enumeration - dynamic enumeration values for product templates
types
Core type aliases and identifiers
validation
Validation patterns and constants
value
Dynamic value types for attribute values and rule evaluation