pub struct ConsiderationSpec {
pub id: String,
pub curve: String,
pub weight: f64,
pub threshold: Option<f64>,
}Expand description
A single consideration in a utility-scoring curve set.
Fields§
§id: StringUnique identifier for this consideration.
curve: StringThe curve type to apply (e.g. “linear”, “logistic”).
weight: f64Weight applied to this consideration’s score.
threshold: Option<f64>Minimum score threshold; consideration is ignored below this value.
Trait Implementations§
Source§impl Clone for ConsiderationSpec
impl Clone for ConsiderationSpec
Source§fn clone(&self) -> ConsiderationSpec
fn clone(&self) -> ConsiderationSpec
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 ConsiderationSpec
impl Debug for ConsiderationSpec
Source§impl<'de> Deserialize<'de> for ConsiderationSpec
impl<'de> Deserialize<'de> for ConsiderationSpec
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 PartialEq for ConsiderationSpec
impl PartialEq for ConsiderationSpec
Source§impl Serialize for ConsiderationSpec
impl Serialize for ConsiderationSpec
impl StructuralPartialEq for ConsiderationSpec
Auto Trait Implementations§
impl Freeze for ConsiderationSpec
impl RefUnwindSafe for ConsiderationSpec
impl Send for ConsiderationSpec
impl Sync for ConsiderationSpec
impl Unpin for ConsiderationSpec
impl UnsafeUnpin for ConsiderationSpec
impl UnwindSafe for ConsiderationSpec
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