pub struct SelectionDecision {
pub policy_id: String,
pub selected_candidate_id: String,
pub metric_name: String,
pub objective: MetricObjective,
pub metric_level: Option<PredictionLevel>,
pub evaluation_scope: Option<EvaluationScope>,
pub refit_slot_plan: Option<RefitSlotPlan>,
pub reduction_id: Option<String>,
pub selected_score: f64,
pub ranked_candidates: Vec<RankedCandidate>,
}Fields§
§policy_id: String§selected_candidate_id: String§metric_name: String§objective: MetricObjective§metric_level: Option<PredictionLevel>§evaluation_scope: Option<EvaluationScope>§refit_slot_plan: Option<RefitSlotPlan>§reduction_id: Option<String>§selected_score: f64§ranked_candidates: Vec<RankedCandidate>Implementations§
Source§impl SelectionDecision
impl SelectionDecision
pub fn validate(&self) -> Result<(), DagMlError>
Trait Implementations§
Source§impl Clone for SelectionDecision
impl Clone for SelectionDecision
Source§fn clone(&self) -> SelectionDecision
fn clone(&self) -> SelectionDecision
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 SelectionDecision
impl Debug for SelectionDecision
Source§impl<'de> Deserialize<'de> for SelectionDecision
impl<'de> Deserialize<'de> for SelectionDecision
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SelectionDecision, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SelectionDecision, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for SelectionDecision
impl PartialEq for SelectionDecision
Source§fn eq(&self, other: &SelectionDecision) -> bool
fn eq(&self, other: &SelectionDecision) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SelectionDecision
impl Serialize for SelectionDecision
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for SelectionDecision
Auto Trait Implementations§
impl Freeze for SelectionDecision
impl RefUnwindSafe for SelectionDecision
impl Send for SelectionDecision
impl Sync for SelectionDecision
impl Unpin for SelectionDecision
impl UnsafeUnpin for SelectionDecision
impl UnwindSafe for SelectionDecision
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