pub struct PendingMarkSpec {
pub name: String,
pub category: Option<EventCategory>,
pub category_profile: Option<CategoryProfile>,
pub data: Option<Value>,
pub data_schema: Option<DataSchema>,
pub metadata: Option<Value>,
pub severity: Option<LogSeverity>,
}Expand description
Mark requested by middleware for materialization by a lifecycle owner.
The runtime assigns the parent UUID, event UUID, and timestamp when it materializes the mark at the appropriate lifecycle boundary.
Fields§
§name: StringHuman-readable mark name.
category: Option<EventCategory>Optional semantic category for the mark.
category_profile: Option<CategoryProfile>Optional category-specific typed fields.
data: Option<Value>Optional application payload attached to the mark.
data_schema: Option<DataSchema>Optional schema identifier for the mark data.
metadata: Option<Value>Optional metadata attached to the mark.
severity: Option<LogSeverity>Optional typed log severity applied authoritatively to mark metadata.
Implementations§
Source§impl PendingMarkSpec
impl PendingMarkSpec
Sourcepub fn builder() -> PendingMarkSpecBuilder
pub fn builder() -> PendingMarkSpecBuilder
Create a builder for building PendingMarkSpec.
On the builder, call .name(...), .category(...)(optional), .category_profile(...)(optional), .data(...)(optional), .data_schema(...)(optional), .metadata(...)(optional), .severity(...)(optional) to set the values of the fields.
Finally, call .build() to create the instance of PendingMarkSpec.
Trait Implementations§
Source§impl Clone for PendingMarkSpec
impl Clone for PendingMarkSpec
Source§fn clone(&self) -> PendingMarkSpec
fn clone(&self) -> PendingMarkSpec
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more