pub struct RouteTargets {
pub name: String,
pub id: ModelId,
pub kind: &'static str,
pub answer_targets: Vec<ConfiguredTarget>,
pub judge_targets: Vec<ConfiguredTarget>,
}Expand description
RouteTargets lists the targets one route calls, as the runner reads them from the server config.
Fields§
§name: StringThis field names the route’s table under [routes].
id: ModelIdThis field holds the public model ID that callers send.
kind: &'static strThis field holds the route’s type, such as stage_router.
answer_targets: Vec<ConfiguredTarget>This field lists the targets that answer requests, in algorithm order. It includes targets that only delegated sub-agent work uses.
judge_targets: Vec<ConfiguredTarget>This field lists the targets the route calls only to decide, such as a judge or an advisor.
Trait Implementations§
Source§impl Clone for RouteTargets
impl Clone for RouteTargets
Source§fn clone(&self) -> RouteTargets
fn clone(&self) -> RouteTargets
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 RouteTargets
impl Debug for RouteTargets
impl Eq for RouteTargets
Source§impl PartialEq for RouteTargets
impl PartialEq for RouteTargets
impl StructuralPartialEq for RouteTargets
Auto Trait Implementations§
impl Freeze for RouteTargets
impl RefUnwindSafe for RouteTargets
impl Send for RouteTargets
impl Sync for RouteTargets
impl Unpin for RouteTargets
impl UnsafeUnpin for RouteTargets
impl UnwindSafe for RouteTargets
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.