systemprompt_identifiers/content.rs
1//! Content management identifiers.
2//!
3//! [`SkillId`] and [`SkillName`] are checked non-empty: a skill id is the
4//! catalog slug a manifest, an artifact and an authz entity ref all carry.
5//!
6//! Copyright (c) systemprompt.io — Business Source License 1.1.
7//! See <https://systemprompt.io> for licensing details.
8
9crate::define_id!(SkillId, checked, |value| {
10 crate::macros::validate_non_empty("SkillId", value)
11});
12crate::define_id!(SkillName, checked, |value| {
13 crate::macros::validate_non_empty("SkillName", value)
14});
15crate::define_id!(SourceId, schema);
16crate::define_id!(CategoryId, schema);
17crate::define_id!(ContentId, generate, schema);
18crate::define_id!(TagId, schema);
19crate::define_id!(FileId, uuid);