Skip to main content

Directory

Trait Directory 

Source
pub trait Directory {
    // Required methods
    fn names_of(&self, uid: &str) -> Vec<String>;
    fn leader_of(&self, uid: &str) -> Option<String>;
}
Expand description

What the ledger needs to know of the world besides the task store.

Required Methods§

Source

fn names_of(&self, uid: &str) -> Vec<String>

The names the Kanban’s history may know an agent by: the transcript zone has its definition uid, and the history records the name a task was held under (its slug, or one it had before a rename).

Source

fn leader_of(&self, uid: &str) -> Option<String>

The definition uid of the leader whose worker uid is.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§