pub struct ScoreEvent {
pub body: Box<ScoreBody>,
pub id: String,
pub timestamp: String,
pub metadata: Option<Option<Value>>,
}Fields§
§body: Box<ScoreBody>§id: StringUUID v4 that identifies the event
timestamp: StringDatetime (ISO 8601) of event creation in client. Should be as close to actual event creation in client as possible, this timestamp will be used for ordering of events in future release. Resolution: milliseconds (required), microseconds (optimal).
metadata: Option<Option<Value>>Optional. Metadata field used by the Langfuse SDKs for debugging.
Implementations§
Source§impl ScoreEvent
impl ScoreEvent
Trait Implementations§
Source§impl Clone for ScoreEvent
impl Clone for ScoreEvent
Source§fn clone(&self) -> ScoreEvent
fn clone(&self) -> ScoreEvent
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 ScoreEvent
impl Debug for ScoreEvent
Source§impl Default for ScoreEvent
impl Default for ScoreEvent
Source§fn default() -> ScoreEvent
fn default() -> ScoreEvent
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ScoreEvent
impl<'de> Deserialize<'de> for ScoreEvent
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 ScoreEvent
impl PartialEq for ScoreEvent
Source§impl Serialize for ScoreEvent
impl Serialize for ScoreEvent
impl StructuralPartialEq for ScoreEvent
Auto Trait Implementations§
impl Freeze for ScoreEvent
impl RefUnwindSafe for ScoreEvent
impl Send for ScoreEvent
impl Sync for ScoreEvent
impl Unpin for ScoreEvent
impl UnwindSafe for ScoreEvent
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