Expand description
Domain primitives and ports shared by every Origin-based application.
This crate is the bottom of the dependency graph. It must never depend on Tauri, on a storage engine, on an HTTP client, or on a product.
Re-exports§
pub use account::Account;pub use account::AccountStatus;pub use alert::Alert;pub use alert::AlertState;pub use alert::Severity;pub use clock::Clock;pub use clock::SystemClock;pub use error::AppError;pub use error::ErrorContract;pub use error::ErrorKind;pub use error::Result;pub use health::Health;pub use ids::AccountId;pub use ids::AlertId;pub use ids::ConnectorId;pub use ids::JobId;pub use ids::SyncId;pub use job::Job;pub use job::JobStatus;pub use job::Progress;pub use metric::Metric;pub use metric::MetricKey;pub use metric::Trend;pub use metric::Unit;pub use permission::PlatformPermission;pub use permission::ProductPermission;pub use sync::SyncOutcome;pub use sync::SyncState;pub use sync::ThrottleReason;
Modules§
- account
- An account is one authenticated identity at one connector.
- alert
- Alerts are a universal concept: a product decides what raises one, the platform decides how it is deduplicated, surfaced and resolved.
- clock
- Time as a port.
- error
- The normalised error model.
- health
- A neutral health model shared by all products.
- ids
- Typed identifiers.
- job
- Background jobs. Everything long-running reports progress the same way, so every product can reuse one progress UI.
- metric
- Metrics as a neutral cross-cutting concept: a number, a unit, a point in time.
- permission
- Two permission levels that are never mixed (ADR-0007).
- sync
- Synchronisation bookkeeping.