pub struct PatternRoute {
pub pattern: String,
pub tier: ExecutorTier,
}Expand description
One PATTERN routing rule (ticket routing-rules-config): a task-class
pattern routed to an executor capability class. The pattern language is
deliberately tiny and deterministic — * matches any (possibly empty)
run of characters, every other character is literal, comparison happens
after the floor’s normalization (trim + ASCII-lowercase). Must be
non-empty and unique within the pattern list after normalization —
config::validate fails closed otherwise (a duplicate is dead config
under first-match-wins).
Fields§
§pattern: StringThe glob-style pattern matched against the normalized task class.
tier: ExecutorTierThe capability class a matching task class routes to.
Trait Implementations§
Source§impl Clone for PatternRoute
impl Clone for PatternRoute
Source§fn clone(&self) -> PatternRoute
fn clone(&self) -> PatternRoute
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PatternRoute
impl Debug for PatternRoute
Source§impl<'de> Deserialize<'de> for PatternRoute
impl<'de> Deserialize<'de> for PatternRoute
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PatternRoute
impl PartialEq for PatternRoute
Source§impl Serialize for PatternRoute
impl Serialize for PatternRoute
impl StructuralPartialEq for PatternRoute
Auto Trait Implementations§
impl Freeze for PatternRoute
impl RefUnwindSafe for PatternRoute
impl Send for PatternRoute
impl Sync for PatternRoute
impl Unpin for PatternRoute
impl UnsafeUnpin for PatternRoute
impl UnwindSafe for PatternRoute
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more