# Struct framing::Fragment

> One fragment message, borrowing its chunk from the received text.

`zaun_community_protocol::framing::Fragment` · Struct

```rust
pub struct Fragment<'a> { … }
```

One fragment message, borrowing its chunk from the received text.

## Fields

### `frag_id: FragId`

The reassembly this fragment belongs to.

### `index: usize`

Position, `0 ≤ index < count`.

### `count: usize`

Number of fragments in the frame, `2 ≤ count ≤ 64` syntactically; over 32 is discarded.

### `chunk: &'a str`

A piece of the envelope JSON text (valid UTF-8 by construction).

## Trait implementations

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

[Full rustdoc page](/docs/api/rust/zaun-community-protocol/zaun_community_protocol/framing/parse/struct.Fragment.html)
