pub struct AttributeParameters {
pub score_threshold: Option<f32>,
pub score_type: Option<String>,
}Expand description
Configurable parameters for attribute scoring.
This type is not used in any activity, and only used as part of another schema.
Fields§
§score_threshold: Option<f32>Don’t return scores for this attribute that are below this threshold. If unset, a default threshold will be applied. A FloatValue wrapper is used to distinguish between 0 vs. default/unset.
score_type: Option<String>What type of scores to return. If unset, defaults to probability scores.
Trait Implementations§
Source§impl Clone for AttributeParameters
impl Clone for AttributeParameters
Source§fn clone(&self) -> AttributeParameters
fn clone(&self) -> AttributeParameters
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 AttributeParameters
impl Debug for AttributeParameters
Source§impl Default for AttributeParameters
impl Default for AttributeParameters
Source§fn default() -> AttributeParameters
fn default() -> AttributeParameters
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AttributeParameters
impl<'de> Deserialize<'de> for AttributeParameters
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 Serialize for AttributeParameters
impl Serialize for AttributeParameters
impl Part for AttributeParameters
Auto Trait Implementations§
impl Freeze for AttributeParameters
impl RefUnwindSafe for AttributeParameters
impl Send for AttributeParameters
impl Sync for AttributeParameters
impl Unpin for AttributeParameters
impl UnwindSafe for AttributeParameters
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