# Struct envelope::VersionRange

> An inclusive protocol version range (`session.hello.versions`, `UNSUPPORTED_VERSION`).

`zaun_community_protocol::envelope::VersionRange` · Struct

```rust
pub struct VersionRange { … }
```

An inclusive protocol version range (`session.hello.versions`, `UNSUPPORTED_VERSION`).

## Fields

### `min: u16`

Lowest supported version.

### `max: u16`

Highest supported version.

## Methods

### `contains`

```rust
pub const fn contains(&self, v: u16) -> bool
```

Whether `v` lies in the range.

## Trait implementations

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

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