pub struct BaseEvent {
pub atof_version: String,
pub parent_uuid: Option<Uuid>,
pub uuid: Uuid,
pub timestamp: DateTime<Utc>,
pub name: String,
pub data: Option<Json>,
pub data_schema: Option<DataSchema>,
pub metadata: Option<Json>,
}Expand description
Shared event metadata carried by every ATOF event.
Fields§
§atof_version: StringATOF protocol version.
parent_uuid: Option<Uuid>UUID of the parent scope, if any.
uuid: UuidUnique identifier for the event or span.
timestamp: DateTime<Utc>Event timestamp in UTC.
name: StringHuman-readable event name.
data: Option<Json>Application-defined payload.
data_schema: Option<DataSchema>Optional schema identifier for data.
metadata: Option<Json>Optional tracing/correlation metadata.
Implementations§
Source§impl BaseEvent
impl BaseEvent
Sourcepub fn builder() -> BaseEventBuilder<((), (), (), (), (), (), (), ())>
pub fn builder() -> BaseEventBuilder<((), (), (), (), (), (), (), ())>
Create a builder for building BaseEvent.
On the builder, call .atof_version(...)(optional), .parent_uuid(...)(optional), .uuid(...)(optional), .timestamp(...)(optional), .name(...), .data(...)(optional), .data_schema(...)(optional), .metadata(...)(optional) to set the values of the fields.
Finally, call .build() to create the instance of BaseEvent.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for BaseEvent
impl<'de> Deserialize<'de> for BaseEvent
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
impl StructuralPartialEq for BaseEvent
Auto Trait Implementations§
impl Freeze for BaseEvent
impl RefUnwindSafe for BaseEvent
impl Send for BaseEvent
impl Sync for BaseEvent
impl Unpin for BaseEvent
impl UnsafeUnpin for BaseEvent
impl UnwindSafe for BaseEvent
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request