make func pub

This commit is contained in:
Timur Gordon
2025-08-07 13:41:19 +02:00
parent 831b25dbfa
commit b31651cfeb
3 changed files with 7 additions and 1 deletions

View File

@@ -76,6 +76,11 @@ impl JobBuilder {
self
}
pub fn caller_id(mut self, caller_id: &str) -> Self {
self.caller_id = caller_id.to_string();
self
}
pub fn script(mut self, script: &str) -> Self {
self.script = script.to_string();
self

View File

@@ -7,6 +7,7 @@ use redis::AsyncCommands;
use thiserror::Error;
mod builder;
pub use builder::JobBuilder;
/// Redis namespace prefix for all Hero job-related keys
pub const NAMESPACE_PREFIX: &str = "hero:job:";