# Struct command::object::Retention

> Message retention of a channel.

`zaun_community_protocol::command::object::Retention` · Struct

```rust
pub struct Retention { … }
```

Message retention of a channel.

SPEC: the spec gives no bounds or semantics; this crate requires each set value ≥ 1 and
below 2^53, and lets `null` mean "no limit".

## Fields

### `max_age_s: Option<u64>`

Maximum message age in seconds.

### `max_count: Option<u64>`

Maximum number of messages kept.

## Trait implementations

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

[Full rustdoc page](/docs/api/rust/zaun-community-protocol/zaun_community_protocol/command/object/channel/struct.Retention.html)
