pub struct PerformanceFeedback {
pub strategy: SelectionStrategy,
pub quality_score: f64,
pub budget_efficiency: f64,
pub user_satisfaction: Option<f64>,
pub time_efficiency: f64,
pub context: SelectionContext,
}
Expand description
Feedback about the performance of a routing decision
Fields§
§strategy: SelectionStrategy
Strategy that was used
quality_score: f64
Quality score achieved (0.0-1.0)
budget_efficiency: f64
Budget utilization efficiency (0.0-1.0)
user_satisfaction: Option<f64>
User satisfaction score if available (0.0-1.0)
time_efficiency: f64
Time taken relative to budget (0.0-1.0)
context: SelectionContext
Context this feedback applies to
Implementations§
Source§impl PerformanceFeedback
impl PerformanceFeedback
Sourcepub fn calculate_reward(&self) -> f64
pub fn calculate_reward(&self) -> f64
Calculate overall reward from individual metrics
Trait Implementations§
Source§impl Clone for PerformanceFeedback
impl Clone for PerformanceFeedback
Source§fn clone(&self) -> PerformanceFeedback
fn clone(&self) -> PerformanceFeedback
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 PerformanceFeedback
impl Debug for PerformanceFeedback
Source§impl<'de> Deserialize<'de> for PerformanceFeedback
impl<'de> Deserialize<'de> for PerformanceFeedback
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 PerformanceFeedback
impl RefUnwindSafe for PerformanceFeedback
impl Send for PerformanceFeedback
impl Sync for PerformanceFeedback
impl Unpin for PerformanceFeedback
impl UnwindSafe for PerformanceFeedback
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more