pub struct PendingMarkSpec {
pub name: String,
pub category: Option<EventCategory>,
pub category_profile: Option<CategoryProfile>,
pub data: Option<Value>,
pub metadata: Option<Value>,
}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.
metadata: Option<Value>Optional metadata attached to the mark.
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), .metadata(...)(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
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PendingMarkSpec
impl Debug for PendingMarkSpec
Source§impl<'de> Deserialize<'de> for PendingMarkSpec
impl<'de> Deserialize<'de> for PendingMarkSpec
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<PendingMarkSpec, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PendingMarkSpec, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PendingMarkSpec
impl PartialEq for PendingMarkSpec
Source§fn eq(&self, other: &PendingMarkSpec) -> bool
fn eq(&self, other: &PendingMarkSpec) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PendingMarkSpec
impl Serialize for PendingMarkSpec
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for PendingMarkSpec
Auto Trait Implementations§
impl Freeze for PendingMarkSpec
impl RefUnwindSafe for PendingMarkSpec
impl Send for PendingMarkSpec
impl Sync for PendingMarkSpec
impl Unpin for PendingMarkSpec
impl UnsafeUnpin for PendingMarkSpec
impl UnwindSafe for PendingMarkSpec
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