# Enum permissions::Invalid

> A malformed request (`BAD_REQUEST`).

`zaun_community_protocol::permissions::Invalid` · Enum

```rust
pub enum Invalid { … }
```

A malformed request (`BAD_REQUEST`).

## Variants

### `AllowDenyOverlap`

An override has a bit in both `allow` and `deny`.

### `NotChannelScoped`

An override holds a known bit that is not channel-scoped.

### `SetsUnknownBits`

The command sets an unknown bit that was not already present.

### `NewcomerMaskHidesChannels`

`newcomer_restrictions` contains `VIEW_CHANNEL` or `READ_MESSAGE_HISTORY`.

### `Everyone`

`@everyone` was listed where it may not be (reorder, delete, assign).

### `DuplicateRole`

A role appears twice in one request.

### `BadPosition`

The resulting role positions are not unique, or a position is 0.

### `PreApprovedWithApproval`

`pre_approved` together with `requires_approval`.

### `LooserAdmission`

Invitation admission overrides are not stricter than the policy.

### `Duration`

A duration is outside its bounds (timeout, lockdown).

## Trait implementations

`Clone`, `Copy`, `Debug`, `Eq`, `From<Invalid>`, `Hash`, `PartialEq`, `StructuralPartialEq`

[Full rustdoc page](/docs/api/rust/zaun-community-protocol/zaun_community_protocol/permissions/denial/enum.Invalid.html)
