pub struct ScoreConfigReq {
pub categories: Option<Vec<String>>,
pub data_type: Option<String>,
pub max_value: Option<f64>,
pub min_value: Option<f64>,
pub name: String,
}Fields§
§categories: Option<Vec<String>>Categories is the closed set of labels a CATEGORICAL score may carry. A CATEGORICAL rubric with none is refused.
data_type: Option<String>DataType is NUMERIC (the default), CATEGORICAL or BOOLEAN.
max_value: Option<f64>MaxValue is the inclusive ceiling a NUMERIC score must stay under, finite.
min_value: Option<f64>MinValue is the inclusive floor a NUMERIC score must clear. It must be finite and must not exceed MaxValue.
name: StringName is the score name this rubric governs, matching ^[A-Za-z0-9][A-Za-z0-9._-]{0,63}$. The name is the key, so re-posting one replaces its rules.
Implementations§
Source§impl ScoreConfigReq
impl ScoreConfigReq
pub fn new(name: String) -> ScoreConfigReq
Trait Implementations§
Source§impl Clone for ScoreConfigReq
impl Clone for ScoreConfigReq
Source§fn clone(&self) -> ScoreConfigReq
fn clone(&self) -> ScoreConfigReq
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 ScoreConfigReq
impl Debug for ScoreConfigReq
Source§impl Default for ScoreConfigReq
impl Default for ScoreConfigReq
Source§fn default() -> ScoreConfigReq
fn default() -> ScoreConfigReq
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ScoreConfigReq
impl<'de> Deserialize<'de> for ScoreConfigReq
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 ScoreConfigReq
impl PartialEq for ScoreConfigReq
Source§impl Serialize for ScoreConfigReq
impl Serialize for ScoreConfigReq
impl StructuralPartialEq for ScoreConfigReq
Auto Trait Implementations§
impl Freeze for ScoreConfigReq
impl RefUnwindSafe for ScoreConfigReq
impl Send for ScoreConfigReq
impl Sync for ScoreConfigReq
impl Unpin for ScoreConfigReq
impl UnsafeUnpin for ScoreConfigReq
impl UnwindSafe for ScoreConfigReq
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