# Trait command::Validate

> State-free checks of one body.

`zaun_community_protocol::command::Validate` · Trait

```rust
pub trait Validate { … }
```

State-free checks of one body.

## Methods

### `validate`

```rust
fn validate(&self) -> Result<(), BodyError>;
```

Checks the protocol limits, ranges and spec rules that need no community state.

# Errors
The first violated rule.

[Full rustdoc page](/docs/api/rust/zaun-community-protocol/zaun_community_protocol/command/trait.Validate.html)
