pub trait Labeler: Send + Sync {
// Required methods
fn applies_to(&self, kind: &str) -> bool;
fn apply(&self, res: &mut Resource);
}
Required Methods§
Sourcefn applies_to(&self, kind: &str) -> bool
fn applies_to(&self, kind: &str) -> bool
e.g. “Host”, “Database::Table”; you can also support wildcard/globs if you want.