pub struct ScoreConfig {
pub id: String,
pub name: String,
pub created_at: String,
pub updated_at: String,
pub project_id: String,
pub data_type: ScoreDataType,
pub is_archived: bool,
pub min_value: Option<Option<f64>>,
pub max_value: Option<Option<f64>>,
pub categories: Option<Option<Vec<ConfigCategory>>>,
pub description: Option<Option<String>>,
}Expand description
ScoreConfig : Configuration for a score
Fields§
§id: String§name: String§created_at: String§updated_at: String§project_id: String§data_type: ScoreDataType§is_archived: boolWhether the score config is archived. Defaults to false
min_value: Option<Option<f64>>Sets minimum value for numerical scores. If not set, the minimum value defaults to -∞
max_value: Option<Option<f64>>Sets maximum value for numerical scores. If not set, the maximum value defaults to +∞
categories: Option<Option<Vec<ConfigCategory>>>Configures custom categories for categorical scores
description: Option<Option<String>>Implementations§
Source§impl ScoreConfig
impl ScoreConfig
Sourcepub fn builder() -> ScoreConfigBuilder
pub fn builder() -> ScoreConfigBuilder
Create an instance of ScoreConfig using the builder syntax
Source§impl ScoreConfig
impl ScoreConfig
Sourcepub fn new(
id: String,
name: String,
created_at: String,
updated_at: String,
project_id: String,
data_type: ScoreDataType,
is_archived: bool,
) -> ScoreConfig
pub fn new( id: String, name: String, created_at: String, updated_at: String, project_id: String, data_type: ScoreDataType, is_archived: bool, ) -> ScoreConfig
Configuration for a score
Trait Implementations§
Source§impl Clone for ScoreConfig
impl Clone for ScoreConfig
Source§fn clone(&self) -> ScoreConfig
fn clone(&self) -> ScoreConfig
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ScoreConfig
impl Debug for ScoreConfig
Source§impl Default for ScoreConfig
impl Default for ScoreConfig
Source§fn default() -> ScoreConfig
fn default() -> ScoreConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ScoreConfig
impl<'de> Deserialize<'de> for ScoreConfig
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 ScoreConfig
impl PartialEq for ScoreConfig
Source§impl Serialize for ScoreConfig
impl Serialize for ScoreConfig
impl StructuralPartialEq for ScoreConfig
Auto Trait Implementations§
impl Freeze for ScoreConfig
impl RefUnwindSafe for ScoreConfig
impl Send for ScoreConfig
impl Sync for ScoreConfig
impl Unpin for ScoreConfig
impl UnwindSafe for ScoreConfig
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)