# Enum envelope::Replay

> What to do with a command whose key matches a stored record.

`zaun_community_protocol::envelope::Replay` · Enum

```rust
pub enum Replay { … }
```

What to do with a command whose key matches a stored record.

## Variants

### `Resend`

Same `type` and body hash: send the stored response again; execute nothing.

### `Conflict`

Different `type` or body hash: answer `CONFLICT{reason: "request_id_reused"}`
(`ErrorBody::conflict(Reason::RequestIdReused)`).

## Trait implementations

`Clone`, `Copy`, `Debug`, `Eq`, `PartialEq`, `StructuralPartialEq`

[Full rustdoc page](/docs/api/rust/zaun-community-protocol/zaun_community_protocol/envelope/idempotency/enum.Replay.html)
