systemprompt_identifiers/policy.rs
1//! Policy identifiers, and the identity of one governed call.
2//!
3//! Copyright (c) systemprompt.io — Business Source License 1.1.
4//! See <https://systemprompt.io> for licensing details.
5
6crate::define_id!(PolicyVersion);
7crate::define_id!(PolicyId);
8crate::define_id!(SecretPatternId, non_empty);
9crate::define_id!(CallId, generate, schema);
10
11impl PolicyVersion {
12 pub fn unversioned() -> Self {
13 Self("unversioned".to_owned())
14 }
15}