agde::resource

Enum Matches

source
pub enum Matches {
    None,
    All,
    Exact(String),
    List(Vec<Matches>),
}
Expand description

A filter to match a resource.

Variants§

§

None

Matches noting.

§

All

Matches everything.

§

Exact(String)

Matches the exact string.

§

List(Vec<Matches>)

Matches if any Matches in the list match.

Implementations§

source§

impl Matches

source

pub fn matches(&self, resource: &str) ->