pub struct RoutingSelection {
pub candidate: RoutingCandidate,
pub eligible: bool,
pub reasons: BTreeSet<RoutingExclusionReason>,
pub missing_capabilities: BTreeSet<RoutingCapability>,
pub estimated_max_cost_microusd: Option<u64>,
}Expand description
Deterministic reducer output for one candidate.
Fields§
§candidate: RoutingCandidateThe candidate evaluated by the reducer.
eligible: boolWhether this candidate is eligible for execution.
reasons: BTreeSet<RoutingExclusionReason>Reasons for exclusion when eligible is false.
missing_capabilities: BTreeSet<RoutingCapability>Required capabilities this candidate lacks.
estimated_max_cost_microusd: Option<u64>Pre-computed cost estimate for this candidate.
Trait Implementations§
Source§impl Clone for RoutingSelection
impl Clone for RoutingSelection
Source§fn clone(&self) -> RoutingSelection
fn clone(&self) -> RoutingSelection
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 RoutingSelection
impl Debug for RoutingSelection
Source§impl<'de> Deserialize<'de> for RoutingSelection
impl<'de> Deserialize<'de> for RoutingSelection
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
impl Eq for RoutingSelection
Source§impl PartialEq for RoutingSelection
impl PartialEq for RoutingSelection
Source§impl Serialize for RoutingSelection
impl Serialize for RoutingSelection
impl StructuralPartialEq for RoutingSelection
Auto Trait Implementations§
impl Freeze for RoutingSelection
impl RefUnwindSafe for RoutingSelection
impl Send for RoutingSelection
impl Sync for RoutingSelection
impl Unpin for RoutingSelection
impl UnsafeUnpin for RoutingSelection
impl UnwindSafe for RoutingSelection
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