bullrs 0.0.3

A BullMQ compatible Job Queue based on Redis
Documentation
1
2
3
4
5
6
7
8
9
10
use nutype::nutype;

/// A struct which wraps a String and holds guarantees to be a valid
/// (Redis compatible) ID for Jobs.
#[nutype(
    validate(not_empty, predicate = |s: &str| !s.contains(":")),
    sanitize(trim),
    derive(AsRef, PartialEq, Eq, PartialOrd, Ord, Serialize, Deserialize)
)]
pub struct JobId(String);