pub struct AgentRoute {
pub channel: String,
pub match_criteria: MatchCriteria,
pub agent: String,
}Expand description
A single routing rule that maps channel + match criteria to an agent.
Fields§
§channel: StringChannel name to match (e.g. “telegram”, “slack”, “discord”).
match_criteria: MatchCriteriaCriteria to match within the channel.
agent: StringAgent ID to route to when this rule matches.
Trait Implementations§
Source§impl Clone for AgentRoute
impl Clone for AgentRoute
Source§fn clone(&self) -> AgentRoute
fn clone(&self) -> AgentRoute
Returns a duplicate of the value. Read more
1.0.0 · 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 AgentRoute
impl Debug for AgentRoute
Source§impl<'de> Deserialize<'de> for AgentRoute
impl<'de> Deserialize<'de> for AgentRoute
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 AgentRoute
impl RefUnwindSafe for AgentRoute
impl Send for AgentRoute
impl Sync for AgentRoute
impl Unpin for AgentRoute
impl UnsafeUnpin for AgentRoute
impl UnwindSafe for AgentRoute
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