pub struct TextScoreV1 {Show 15 fields
pub id: String,
pub trace_id: String,
pub name: String,
pub source: ScoreSource,
pub observation_id: Option<Option<String>>,
pub timestamp: DateTime<FixedOffset>,
pub created_at: DateTime<FixedOffset>,
pub updated_at: DateTime<FixedOffset>,
pub author_user_id: Option<Option<String>>,
pub comment: Option<Option<String>>,
pub metadata: Option<Value>,
pub config_id: Option<Option<String>>,
pub queue_id: Option<Option<String>>,
pub environment: String,
pub string_value: String,
}Fields§
§id: String§trace_id: String§name: String§source: ScoreSource§observation_id: Option<Option<String>>The observation ID associated with the score
timestamp: DateTime<FixedOffset>§created_at: DateTime<FixedOffset>§updated_at: DateTime<FixedOffset>The user ID of the author
comment: Option<Option<String>>Comment on the score
metadata: Option<Value>Metadata associated with the score
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>>The annotation queue referenced by the score. Indicates if score was initially created while processing annotation queue.
environment: StringThe environment from which this score originated. Can be any lowercase alphanumeric string with hyphens and underscores that does not start with ‘langfuse’.
string_value: StringThe text content of the score (1-500 characters)
Implementations§
Source§impl TextScoreV1
impl TextScoreV1
Sourcepub fn builder() -> TextScoreV1Builder
pub fn builder() -> TextScoreV1Builder
Create an instance of TextScoreV1 using the builder syntax
Source§impl TextScoreV1
impl TextScoreV1
pub fn new( id: String, trace_id: String, name: String, source: ScoreSource, timestamp: DateTime<FixedOffset>, created_at: DateTime<FixedOffset>, updated_at: DateTime<FixedOffset>, metadata: Option<Value>, environment: String, string_value: String, ) -> TextScoreV1
Trait Implementations§
Source§impl Clone for TextScoreV1
impl Clone for TextScoreV1
Source§fn clone(&self) -> TextScoreV1
fn clone(&self) -> TextScoreV1
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 TextScoreV1
impl Debug for TextScoreV1
Source§impl Default for TextScoreV1
impl Default for TextScoreV1
Source§fn default() -> TextScoreV1
fn default() -> TextScoreV1
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TextScoreV1
impl<'de> Deserialize<'de> for TextScoreV1
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 TextScoreV1
impl PartialEq for TextScoreV1
Source§impl Serialize for TextScoreV1
impl Serialize for TextScoreV1
impl StructuralPartialEq for TextScoreV1
Auto Trait Implementations§
impl Freeze for TextScoreV1
impl RefUnwindSafe for TextScoreV1
impl Send for TextScoreV1
impl Sync for TextScoreV1
impl Unpin for TextScoreV1
impl UnsafeUnpin for TextScoreV1
impl UnwindSafe for TextScoreV1
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