pub struct BaseScoreV1 {Show 14 fields
pub id: String,
pub trace_id: String,
pub name: String,
pub source: ScoreSource,
pub observation_id: Option<Option<String>>,
pub timestamp: String,
pub created_at: String,
pub updated_at: String,
pub author_user_id: Option<Option<String>>,
pub comment: Option<Option<String>>,
pub metadata: Option<Option<Value>>,
pub config_id: Option<Option<String>>,
pub queue_id: Option<Option<String>>,
pub environment: Option<Option<String>>,
}Fields§
§id: String§trace_id: String§name: String§source: ScoreSource§observation_id: Option<Option<String>>§timestamp: String§created_at: String§updated_at: String§comment: Option<Option<String>>§metadata: Option<Option<Value>>§config_id: Option<Option<String>>Reference a score config on a score. When set, config and score name must be equal and value must comply to optionally defined numerical range
queue_id: Option<Option<String>>Reference an annotation queue on a score. Populated if the score was initially created in an annotation queue.
environment: Option<Option<String>>The environment from which this score originated. Can be any lowercase alphanumeric string with hyphens and underscores that does not start with ‘langfuse’.
Implementations§
Source§impl BaseScoreV1
impl BaseScoreV1
pub fn new( id: String, trace_id: String, name: String, source: ScoreSource, timestamp: String, created_at: String, updated_at: String, ) -> BaseScoreV1
Trait Implementations§
Source§impl Clone for BaseScoreV1
impl Clone for BaseScoreV1
Source§fn clone(&self) -> BaseScoreV1
fn clone(&self) -> BaseScoreV1
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 BaseScoreV1
impl Debug for BaseScoreV1
Source§impl Default for BaseScoreV1
impl Default for BaseScoreV1
Source§fn default() -> BaseScoreV1
fn default() -> BaseScoreV1
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BaseScoreV1
impl<'de> Deserialize<'de> for BaseScoreV1
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 BaseScoreV1
impl PartialEq for BaseScoreV1
Source§impl Serialize for BaseScoreV1
impl Serialize for BaseScoreV1
impl StructuralPartialEq for BaseScoreV1
Auto Trait Implementations§
impl Freeze for BaseScoreV1
impl RefUnwindSafe for BaseScoreV1
impl Send for BaseScoreV1
impl Sync for BaseScoreV1
impl Unpin for BaseScoreV1
impl UnwindSafe for BaseScoreV1
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