pub struct CandidateScore {
pub candidate_id: String,
pub metrics: BTreeMap<String, f64>,
pub metadata: BTreeMap<String, Value>,
}Fields§
§candidate_id: String§metrics: BTreeMap<String, f64>§metadata: BTreeMap<String, Value>Implementations§
Source§impl CandidateScore
impl CandidateScore
pub fn validate(&self) -> Result<(), DagMlError>
Trait Implementations§
Source§impl Clone for CandidateScore
impl Clone for CandidateScore
Source§fn clone(&self) -> CandidateScore
fn clone(&self) -> CandidateScore
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 CandidateScore
impl Debug for CandidateScore
Source§impl<'de> Deserialize<'de> for CandidateScore
impl<'de> Deserialize<'de> for CandidateScore
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CandidateScore, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CandidateScore, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for CandidateScore
impl PartialEq for CandidateScore
Source§fn eq(&self, other: &CandidateScore) -> bool
fn eq(&self, other: &CandidateScore) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CandidateScore
impl Serialize for CandidateScore
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 CandidateScore
Auto Trait Implementations§
impl Freeze for CandidateScore
impl RefUnwindSafe for CandidateScore
impl Send for CandidateScore
impl Sync for CandidateScore
impl Unpin for CandidateScore
impl UnsafeUnpin for CandidateScore
impl UnwindSafe for CandidateScore
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