Struct Pending Mark Spec

View as Markdown

Generated from cargo doc --no-deps -p nemo-relay -p nemo-relay-adaptive -p nemo-relay-pii-redaction -p nemo-relay-ffi -p nemo-relay-types -p nemo-relay-plugin -p nemo-relay-worker-proto -p nemo-relay-worker.

pub struct PendingMarkSpec {
    pub name: String,
    pub category: Option<EventCategory>,
    pub category_profile: Option<CategoryProfile>,
    pub data: Option<Value>,
    pub metadata: Option<Value>,
}

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: String

Human-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.

metadata: Option<Value>

Optional metadata attached to the mark.

Implementations

impl PendingMarkSpec

impl PendingMarkSpec

builder

pub fn builder() -> PendingMarkSpecBuilder

Create a builder for building PendingMarkSpec. On the builder, call .name(...), .category(...)(optional), .category_profile(...)(optional), .data(...)(optional), .metadata(...)(optional) to set the values of the fields. Finally, call .build() to create the instance of PendingMarkSpec.

Trait Implementations

impl Clone for PendingMarkSpec

impl Clone for PendingMarkSpec

clone

fn clone(&self) -> PendingMarkSpec

clone_from

fn clone_from(&mut self, source: &Self)

impl Debug for PendingMarkSpec

impl Debug for PendingMarkSpec

fmt

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

impl<'de> Deserialize<'de> for PendingMarkSpec

impl<'de> Deserialize<'de> for PendingMarkSpec

deserialize

fn deserialize<__D>(
    __deserializer: __D,
) -> Result<PendingMarkSpec, <__D as Deserializer<'de>>::Error>where
    __D: Deserializer<'de>,

impl PartialEq for PendingMarkSpec

impl PartialEq for PendingMarkSpec

eq

fn eq(&self, other: &PendingMarkSpec) -> bool

ne

fn ne(&self, other: &Rhs) -> bool

impl Serialize for PendingMarkSpec

impl Serialize for PendingMarkSpec

serialize

fn serialize<__S>(
    &self,
    __serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
    __S: Serializer,

impl StructuralPartialEq for PendingMarkSpec

impl StructuralPartialEq for PendingMarkSpec