pub struct CreateGenerationEvent1 {
pub id: String,
pub timestamp: String,
pub metadata: Option<Option<Value>>,
pub body: Box<CreateGenerationBody>,
pub type: Type,
}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<CreateGenerationBody>§type: TypeImplementations§
Source§impl CreateGenerationEvent1
impl CreateGenerationEvent1
Sourcepub fn builder() -> CreateGenerationEvent1Builder
pub fn builder() -> CreateGenerationEvent1Builder
Create an instance of CreateGenerationEvent1 using the builder syntax
Source§impl CreateGenerationEvent1
impl CreateGenerationEvent1
pub fn new( id: String, timestamp: String, body: CreateGenerationBody, type: Type, ) -> CreateGenerationEvent1
Trait Implementations§
Source§impl Clone for CreateGenerationEvent1
impl Clone for CreateGenerationEvent1
Source§impl Debug for CreateGenerationEvent1
impl Debug for CreateGenerationEvent1
Source§impl Default for CreateGenerationEvent1
impl Default for CreateGenerationEvent1
Source§impl<'de> Deserialize<'de> for CreateGenerationEvent1
impl<'de> Deserialize<'de> for CreateGenerationEvent1
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 CreateGenerationEvent1
impl PartialEq for CreateGenerationEvent1
Source§impl Serialize for CreateGenerationEvent1
impl Serialize for CreateGenerationEvent1
impl StructuralPartialEq for CreateGenerationEvent1
Auto Trait Implementations§
impl Freeze for CreateGenerationEvent1
impl RefUnwindSafe for CreateGenerationEvent1
impl Send for CreateGenerationEvent1
impl Sync for CreateGenerationEvent1
impl Unpin for CreateGenerationEvent1
impl UnsafeUnpin for CreateGenerationEvent1
impl UnwindSafe for CreateGenerationEvent1
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