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