Skip to navigation

Generated from cargo doc --no-deps -p nemo-relay-builtins -p nemo-relay-diagnostics -p nemo-relay-logging -p nemo-relay-plugin-host -p nemo-relay-codecs -p nemo-relay -p nemo-relay-runtime -p nemo-relay-model-pricing -p nemo-relay-resource-metrics -p nemo-relay-observability -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 data_schema: Option<DataSchema>,
pub metadata: Option<Value>,
pub severity: Option<LogSeverity>,
}

Referenced types: String, Option, EventCategory, CategoryProfile, Value, DataSchema, LogSeverity

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.

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

impl PendingMarkSpec

impl PendingMarkSpec

Referenced types: PendingMarkSpec

builder

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

impl Clone for PendingMarkSpec

impl Clone for PendingMarkSpec

Referenced types: Clone, PendingMarkSpec

clone

fn clone(&self) -> PendingMarkSpec

Referenced types: clone, PendingMarkSpec

clone_from

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

Referenced types: clone_from

impl Debug for PendingMarkSpec

impl Debug for PendingMarkSpec

Referenced types: Debug, PendingMarkSpec

fmt

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

Referenced types: fmt, Formatter, Result, (), Error

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

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

Referenced types: Deserialize, PendingMarkSpec

deserialize

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

Referenced types: deserialize, Result, PendingMarkSpec, Deserializer, Error

impl PartialEq for PendingMarkSpec

impl PartialEq for PendingMarkSpec

Referenced types: PartialEq, PendingMarkSpec

eq

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

Referenced types: eq, PendingMarkSpec, bool

ne

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

Referenced types: ne, &Rhs, bool

impl Serialize for PendingMarkSpec

impl Serialize for PendingMarkSpec

Referenced types: Serialize, PendingMarkSpec

serialize

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

Referenced types: serialize, Result, Serializer, Ok, Error

impl StructuralPartialEq for PendingMarkSpec

impl StructuralPartialEq for PendingMarkSpec

Referenced types: StructuralPartialEq, PendingMarkSpec