Struct Variable Pattern

View as Markdown

Generated from cargo doc --no-deps -p nemo-relay -p nemo-relay-adaptive -p nemo-relay-ffi.

pub struct VariablePattern {
    pub name: String,
    pub regex: Regex,
    pub category: VariableCategory,
}

Regex-based pattern used to detect variable content.

Fields

name: String

Stable placeholder name inserted into the template.

regex: Regex

Regex used to detect matching content.

category: VariableCategory

Semantic category assigned to matches from this pattern.

Trait Implementations

impl Debug for VariablePattern

impl Debug for VariablePattern

fmt

fn fmt(&self, f: &mut Formatter<'_>) -> Result