pub struct RankingScore {
pub candidate: String,
pub plan: PlanId,
pub step: String,
pub instance: Vec<String>,
pub value: f64,
}Expand description
A finite score with its request scope, never an unscoped probability.
Fields§
§candidate: String§plan: PlanId§step: String§instance: Vec<String>§value: f64Trait Implementations§
Source§impl Clone for RankingScore
impl Clone for RankingScore
Source§impl Debug for RankingScore
impl Debug for RankingScore
Source§impl<'de> Deserialize<'de> for RankingScore
impl<'de> Deserialize<'de> for RankingScore
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
Source§impl JsonSchema for RankingScore
impl JsonSchema for RankingScore
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for RankingScore
impl PartialEq for RankingScore
Source§impl Serialize for RankingScore
impl Serialize for RankingScore
impl StructuralPartialEq for RankingScore
Auto Trait Implementations§
impl Freeze for RankingScore
impl RefUnwindSafe for RankingScore
impl Send for RankingScore
impl Sync for RankingScore
impl Unpin for RankingScore
impl UnsafeUnpin for RankingScore
impl UnwindSafe for RankingScore
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