Skip to main content

systemprompt_identifiers/
jobs.rs

1//! Scheduler-job identifiers.
2//!
3//! `ScheduledJobId` is the `scheduled_jobs.id` the scheduler mints as a UUID;
4//! `JobName` is a job's registered name (the `submit_job!` name and the
5//! `scheduler.jobs` key), a checked non-empty string.
6//!
7//! Copyright (c) systemprompt.io — Business Source License 1.1.
8//! See <https://systemprompt.io> for licensing details.
9
10crate::define_id!(ScheduledJobId, uuid);
11crate::define_id!(JobName, checked, |value| {
12    crate::macros::validate_non_empty("JobName", value)
13});