evidentsource-client 1.0.0-rc1

Rust client for the EvidentSource event sourcing platform
Documentation
//! Type conversions between proto and domain types.
//!
//! This module provides bidirectional conversion between the gRPC proto types
//! generated from service.proto/domain.proto and the domain types from the
//! evidentsource-core crate.
//!
//! ## Conversion Conventions
//!
//! - **Domain → Proto**: `impl From<DomainType> for ProtoType` (infallible)
//! - **Proto → Domain**: `impl TryFrom<ProtoType> for DomainType` (fallible)
//!
//! The fallible direction handles cases where proto messages may have missing
//! required fields, invalid identifiers, or other validation failures.

pub mod constraints;
pub mod error;
pub mod events;
pub mod selectors;
pub mod state_view;
pub mod timestamps;

// Re-export main types for convenience
pub use error::ConversionError;
pub use timestamps::{datetime_to_timestamp, timestamp_to_datetime};