pub struct Match {
pub agent: Option<String>,
pub subagent: Option<StringOrVec>,
pub task_kind: Option<TaskKind>,
pub language: Option<StringOrVec>,
}Expand description
Predicate over a request’s Features. Every present field is an AND-constraint; absent
fields are wildcards.
Fields§
§agent: Option<String>Require a specific calling agent.
subagent: Option<StringOrVec>Require the subagent to be one of these (or this one, if a bare string).
task_kind: Option<TaskKind>Require a specific task kind.
language: Option<StringOrVec>Require the language to be one of these (or this one, if a bare string).
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Match
impl<'de> Deserialize<'de> for Match
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
Auto Trait Implementations§
impl Freeze for Match
impl RefUnwindSafe for Match
impl Send for Match
impl Sync for Match
impl Unpin for Match
impl UnsafeUnpin for Match
impl UnwindSafe for Match
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