pub struct UpdateGenerationEvent {
pub body: Box<UpdateGenerationBody>,
pub id: String,
pub timestamp: String,
pub metadata: Option<Option<Value>>,
}Fields§
§body: Box<UpdateGenerationBody>§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 UpdateGenerationEvent
impl UpdateGenerationEvent
Sourcepub fn builder() -> UpdateGenerationEventBuilder
pub fn builder() -> UpdateGenerationEventBuilder
Create an instance of UpdateGenerationEvent using the builder syntax
Source§impl UpdateGenerationEvent
impl UpdateGenerationEvent
pub fn new( body: UpdateGenerationBody, id: String, timestamp: String, ) -> UpdateGenerationEvent
Trait Implementations§
Source§impl Clone for UpdateGenerationEvent
impl Clone for UpdateGenerationEvent
Source§fn clone(&self) -> UpdateGenerationEvent
fn clone(&self) -> UpdateGenerationEvent
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 UpdateGenerationEvent
impl Debug for UpdateGenerationEvent
Source§impl Default for UpdateGenerationEvent
impl Default for UpdateGenerationEvent
Source§fn default() -> UpdateGenerationEvent
fn default() -> UpdateGenerationEvent
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UpdateGenerationEvent
impl<'de> Deserialize<'de> for UpdateGenerationEvent
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 UpdateGenerationEvent
impl PartialEq for UpdateGenerationEvent
Source§impl Serialize for UpdateGenerationEvent
impl Serialize for UpdateGenerationEvent
impl StructuralPartialEq for UpdateGenerationEvent
Auto Trait Implementations§
impl Freeze for UpdateGenerationEvent
impl RefUnwindSafe for UpdateGenerationEvent
impl Send for UpdateGenerationEvent
impl Sync for UpdateGenerationEvent
impl Unpin for UpdateGenerationEvent
impl UnwindSafe for UpdateGenerationEvent
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