pub struct CreateObservationEvent {
pub id: String,
pub timestamp: String,
pub metadata: Option<Option<Value>>,
pub body: Box<ObservationBody>,
}Fields§
§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.
body: Box<ObservationBody>Implementations§
Source§impl CreateObservationEvent
impl CreateObservationEvent
Sourcepub fn builder() -> CreateObservationEventBuilder
pub fn builder() -> CreateObservationEventBuilder
Create an instance of CreateObservationEvent using the builder syntax
Source§impl CreateObservationEvent
impl CreateObservationEvent
pub fn new( id: String, timestamp: String, body: ObservationBody, ) -> CreateObservationEvent
Trait Implementations§
Source§impl Clone for CreateObservationEvent
impl Clone for CreateObservationEvent
Source§fn clone(&self) -> CreateObservationEvent
fn clone(&self) -> CreateObservationEvent
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CreateObservationEvent
impl Debug for CreateObservationEvent
Source§impl Default for CreateObservationEvent
impl Default for CreateObservationEvent
Source§fn default() -> CreateObservationEvent
fn default() -> CreateObservationEvent
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CreateObservationEvent
impl<'de> Deserialize<'de> for CreateObservationEvent
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 CreateObservationEvent
impl PartialEq for CreateObservationEvent
Source§impl Serialize for CreateObservationEvent
impl Serialize for CreateObservationEvent
impl StructuralPartialEq for CreateObservationEvent
Auto Trait Implementations§
impl Freeze for CreateObservationEvent
impl RefUnwindSafe for CreateObservationEvent
impl Send for CreateObservationEvent
impl Sync for CreateObservationEvent
impl Unpin for CreateObservationEvent
impl UnwindSafe for CreateObservationEvent
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)