crawlrs 0.2.0

crawlrs - Enterprise-grade web scraping and crawling platform built with Rust
Documentation
// Copyright (c) 2025-2026 Kirky.X🌠
// SPDX-License-Identifier: Apache-2.0

/// 领域模型模块
///
/// 该模块定义了系统的核心业务实体,遵循 DDD 原则:
/// - 纯领域模型(*_model.rs):无 ORM 注解,包含业务逻辑
/// - 领域类型(*_domain.rs):枚举、错误类型等
/// - ORM 实体已移动到 infrastructure/database/entities/
///
/// 命名规则:
/// - *_model.rs: 纯领域模型(无 ORM 注解)
/// - *_domain.rs: 领域业务逻辑(枚举、错误类型)
// Pure domain models (no ORM annotations)
pub mod crawl_model;
pub mod credits_model;
pub mod scrape_result_model;
pub mod task_model;
pub mod team_model;
pub mod webhook_model;

// Domain types (enums, errors)
pub mod task_domain;

pub mod search_result;

// Validation helpers
pub mod validations;

// Builder pattern constructors
pub mod builders;

// Re-export builders
pub use builders::TaskBuilder;

// Re-export pure domain models
pub use crawl_model::{Crawl, CrawlStatus};
pub use credits_model::{Credits, CreditsError, CreditsTransaction, CreditsTransactionType};
pub use scrape_result_model::ScrapeResult;
pub use task_domain::{DomainError, TaskStatus, TaskType};
pub use task_model::Task;
pub use team_model::{Team, TeamError};
pub use webhook_model::{Webhook, WebhookError, WebhookEvent, WebhookEventType, WebhookStatus};

pub use search_result::SearchResult;