origin-domain 0.2.0

Origin domain primitives and platform ports. Knows no product, no Tauri, no storage engine.
Documentation

origin-domain

Origin domain primitives and platform ports. Knows no product, no Tauri, no storage engine.

Part of Origin, a Rust/Tauri platform for building desktop applications from a shared set of domain crates. See the workspace documentation for how the pieces fit together, and ARCHITECTURE.md for the rules this crate follows.

Example

use origin_domain::{AppError, Clock, ErrorKind, SystemClock};

let error = AppError::validation("account id must not be empty");
assert_eq!(error.kind(), ErrorKind::Validation);
assert!(!error.is_retryable());

let clock = SystemClock;
let now = clock.now();

Stability

Pre-1.0 (0.2.0). Public types, enums and field sets may still change between minor versions; pin an exact version if that matters to you.