systemprompt-identifiers 0.53.0

Typed newtype identifiers (UserId, TraceId, AgentId, McpServerId…) for systemprompt.io AI governance infrastructure. Enforces type-safe IDs across every boundary in the MCP governance pipeline.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! Database-value abstraction shared between repository code and the
//! identifier crate.
//!
//! [`DbValue`] carries a NULL marker per scalar type rather than one untyped
//! NULL so that a bound parameter keeps its SQL type when the Rust value is
//! absent; the conversion traits and [`JsonRow`] are built on that invariant.
//!
//! Copyright (c) systemprompt.io — Business Source License 1.1.
//! See <https://systemprompt.io> for licensing details.

mod from_value;
mod to_value;
mod value;

pub use from_value::FromDbValue;
pub use to_value::ToDbValue;
pub use value::{DbValue, JsonRow, parse_database_datetime};