Struct Scope Event
Generated from cargo doc --no-deps -p nemo-relay -p nemo-relay-adaptive -p nemo-relay-ffi.
pub struct ScopeEvent {
pub base: BaseEvent,
pub scope_category: ScopeCategory,
pub attributes: Vec<String>,
pub category: EventCategory,
pub category_profile: Option<CategoryProfile>,
}
ATOF scope lifecycle event.
Fields
base: BaseEvent
Shared ATOF envelope.
scope_category: ScopeCategory
Scope lifecycle phase.
attributes: Vec<String>
Canonical lowercase behavioral flags.
category: EventCategory
Semantic category of work.
category_profile: Option<CategoryProfile>
Category-specific typed fields.
Implementations
impl ScopeEvent
impl ScopeEvent
builder
pub fn builder() -> ScopeEventBuilder<((), (), (), ())>
Create a builder for building ScopeEvent. On the builder, call .scope_category(...), .attributes(...)(optional), .category(...), .category_profile(...)(optional) to set the values of the fields. Finally, call .build() to create the instance of ScopeEvent.
impl ScopeEvent
impl ScopeEvent
new
pub fn new(
base: BaseEvent,
scope_category: ScopeCategory,
attributes: Vec<String>,
category: EventCategory,
category_profile: Option<CategoryProfile>,
) -> Self
Construct a scope event from a base envelope and ATOF-specific fields.
Parameters
base: Shared ATOF event envelope.scope_category: Lifecycle phase for the scope event.attributes: Scope attributes to canonicalize and attach.category: Semantic event category.category_profile: Optional category-specific profile data.
Returns
A ScopeEvent containing the provided fields.
Trait Implementations
impl Clone for ScopeEvent
impl Clone for ScopeEvent
clone
fn clone(&self) -> ScopeEvent
clone_from
fn clone_from(&mut self, source: &Self)
impl Debug for ScopeEvent
impl Debug for ScopeEvent
fmt
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl<'de> Deserialize<'de> for ScopeEvent
impl<'de> Deserialize<'de> for ScopeEvent
deserialize
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl PartialEq for ScopeEvent
impl PartialEq for ScopeEvent
eq
fn eq(&self, other: &ScopeEvent) -> bool
ne
fn ne(&self, other: &Rhs) -> bool
impl Serialize for ScopeEvent
impl Serialize for ScopeEvent
serialize
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
__S: Serializer,
impl StructuralPartialEq for ScopeEvent
impl StructuralPartialEq for ScopeEvent