Trait ammonia::AttributeFilter[][src]

pub trait AttributeFilter: Send + Sync {
    fn filter<'a>(&self, _: &str, _: &str, _: &'a str) -> Option<Cow<'a, str>>;
}
Expand description

Types that implement this trait can be used to remove or rewrite arbitrary attributes.

See attribute_filter for more details.

Required methods

Return None to remove the attribute. Return Some(str) to replace it with a new string.

Trait Implementations

Formats the value using the given formatter. Read more

Implementors