# Struct envelope::ErrorExtras

> The extra fields of the protocol Each applies to the codes named on it.

`zaun_community_protocol::envelope::ErrorExtras` · Struct

```rust
pub struct ErrorExtras { … }
```

The extra fields of the protocol Each applies to the codes named on it.

## Fields

### `field: Option<String>`

`BAD_REQUEST`: the offending field, when known (`"body.content"`, `"request_id"`).

### `limit: Option<u64>`

`PAYLOAD_TOO_LARGE`: the limit exceeded.

### `supported: Option<VersionRange>`

`UNSUPPORTED_VERSION`: the host's range.

### `feature: Option<String>`

`UNSUPPORTED_FEATURE`: the feature.

### `missing: Option<u64>`

`FORBIDDEN`: the missing permission bits, as a JSON decimal string.

### `reason: Option<Reason>`

`FORBIDDEN` (`hierarchy`, `probation`, `lockdown`) or `CONFLICT` reason.

### `until: Option<u64>`

`SUSPENDED` / `TIMED_OUT`: end of the restriction, ms since the Unix epoch.

### `retry_after_ms: Option<u64>`

`SLOWMODE_ACTIVE`, `RATE_LIMITED`, `BUSY`: milliseconds to wait.

### `scope: Option<RateScope>`

`RATE_LIMITED`: the scope whose limit was hit.

### `category: Option<RateCategory>`

`RATE_LIMITED`: the category, when one applies.

### `stream: Option<Stream>`

`RESYNC_REQUIRED`: the stream to resynchronise.

### `channel_id: Option<ChannelId>`

`RESYNC_REQUIRED`: the channel, for a channel stream.

### `object: Option<String>`

`INVALID_SIGNATURE`: which signed object failed (`"descriptor"`, `"delegation"`, …).

## Trait implementations

`Clone`, `Debug`, `Default`, `Deserialize<'de>`, `Eq`, `PartialEq`, `Serialize`, `StructuralPartialEq`

[Full rustdoc page](/docs/api/rust/zaun-community-protocol/zaun_community_protocol/envelope/error_body/struct.ErrorExtras.html)
