> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.nvidia.com/nemo/relay/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.nvidia.com/nemo/relay/_mcp/server.

# Struct Scope Event

> ATOF scope lifecycle event.

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

<pre />

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`

<pre />

#### `builder`

<pre />

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`

<pre />

#### `new`

<pre />

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`](/reference/api/rust-library-reference/nemo-relay-types/api/event/struct-scopeevent) containing the provided fields.

## Trait Implementations

### `impl Clone for ScopeEvent`

<pre />

#### `clone`

<pre />

#### `clone_from`

<pre />

### `impl Debug for ScopeEvent`

<pre />

#### `fmt`

<pre />

### `impl<'de> Deserialize<'de> for ScopeEvent`

<pre />

#### `deserialize`

<pre />

### `impl PartialEq for ScopeEvent`

<pre />

#### `eq`

<pre />

#### `ne`

<pre />

### `impl Serialize for ScopeEvent`

<pre />

#### `serialize`

<pre />

### `impl StructuralPartialEq for ScopeEvent`

<pre />