pipebuilder_common 0.2.2

lib for pipebuilder components
1
2
3
4
5
6
7
8
9
10
11
12
pub trait ScheduleHash<T> {
    fn schedule_hash(&self) -> T;
}

// (namespace, id)
pub struct ScheduleDescriptor<'a>(pub &'a str, pub &'a str);

impl<'a> ScheduleHash<String> for ScheduleDescriptor<'a> {
    fn schedule_hash(&self) -> String {
        format!("{}/{}", self.0, self.1)
    }
}