pub struct NumericScoreV3 {Show 15 fields
pub id: String,
pub project_id: String,
pub name: String,
pub source: ScoreSource,
pub timestamp: DateTime<FixedOffset>,
pub environment: String,
pub created_at: DateTime<FixedOffset>,
pub updated_at: DateTime<FixedOffset>,
pub comment: Option<Option<String>>,
pub config_id: Option<Option<String>>,
pub metadata: Option<Option<HashMap<String, Value>>>,
pub author_user_id: Option<Option<String>>,
pub queue_id: Option<Option<String>>,
pub subject: Option<Box<ScoreSubjectV3>>,
pub value: f64,
}Fields§
§id: String§project_id: String§name: String§source: ScoreSource§timestamp: DateTime<FixedOffset>§environment: StringThe environment from which this score originated.
created_at: DateTime<FixedOffset>§updated_at: DateTime<FixedOffset>§comment: Option<Option<String>>Optional comment attached to the score. Present when "details" is included in the fields parameter.
config_id: Option<Option<String>>The score config ID, if this score was created from a config. Present when "details" is included in the fields parameter.
metadata: Option<Option<HashMap<String, Value>>>Arbitrary metadata attached to the score. Present when "details" is included in the fields parameter.
The user who created this score, if available. Present when "annotation" is included in the fields parameter.
queue_id: Option<Option<String>>The annotation queue this score belongs to, if any. Present when "annotation" is included in the fields parameter.
subject: Option<Box<ScoreSubjectV3>>§value: f64The numeric value of the score.
Implementations§
Source§impl NumericScoreV3
impl NumericScoreV3
Sourcepub fn builder() -> NumericScoreV3Builder
pub fn builder() -> NumericScoreV3Builder
Create an instance of NumericScoreV3 using the builder syntax
Source§impl NumericScoreV3
impl NumericScoreV3
pub fn new( id: String, project_id: String, name: String, source: ScoreSource, timestamp: DateTime<FixedOffset>, environment: String, created_at: DateTime<FixedOffset>, updated_at: DateTime<FixedOffset>, value: f64, ) -> NumericScoreV3
Trait Implementations§
Source§impl Clone for NumericScoreV3
impl Clone for NumericScoreV3
Source§impl Debug for NumericScoreV3
impl Debug for NumericScoreV3
Source§impl Default for NumericScoreV3
impl Default for NumericScoreV3
Source§impl<'de> Deserialize<'de> for NumericScoreV3
impl<'de> Deserialize<'de> for NumericScoreV3
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 NumericScoreV3
impl PartialEq for NumericScoreV3
Source§impl Serialize for NumericScoreV3
impl Serialize for NumericScoreV3
impl StructuralPartialEq for NumericScoreV3
Auto Trait Implementations§
impl Freeze for NumericScoreV3
impl RefUnwindSafe for NumericScoreV3
impl Send for NumericScoreV3
impl Sync for NumericScoreV3
impl Unpin for NumericScoreV3
impl UnsafeUnpin for NumericScoreV3
impl UnwindSafe for NumericScoreV3
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