# PageRequest

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-dynamic-data/cache/struct-pagerequest/

**struct** · [`ferroui-dynamic-data`](/docs/0.5.0/api/ferroui-dynamic-data/) · v0.5.0

```rust
struct PageRequest
```

A request of a page of sorted items (`PageRequest`): the page, from 1, and its size.

Deviation (DEVIATIONS.md, DynamicData): the page and the size are `usize`, so upstream's
`ArgumentException` for a negative one cannot arise. Two requests are equal when their parts
are (`PageRequest.DefaultComparer`).

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.DynamicData/cache/page_request.rs#L19)

## Members

- [`DEFAULT`](#assoc_const-default)
- [`EMPTY`](#assoc_const-empty)
- [`new`](#function-new)
- [`page`](#function-page)
- [`size`](#function-size)

<a id="assoc_const-default"></a>

### DEFAULT

```rust
const DEFAULT: Self
```

The first page of 25 items (`PageRequest.Default`, `new PageRequest()`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.DynamicData/cache/page_request.rs#L26)

<a id="assoc_const-empty"></a>

### EMPTY

```rust
const EMPTY: Self
```

The request of nothing (`PageRequest.Empty`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.DynamicData/cache/page_request.rs#L29)

<a id="function-new"></a>

### new

```rust
const fn new(page: usize, size: usize) -> Self
```

The page `page` of `size` items (`PageRequest(int page, int size)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.DynamicData/cache/page_request.rs#L32)

<a id="function-page"></a>

### page

```rust
const fn page(self: &Self) -> usize
```

The page, from 1 (`Page`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.DynamicData/cache/page_request.rs#L37)

<a id="function-size"></a>

### size

```rust
const fn size(self: &Self) -> usize
```

The number of items of a page (`Size`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.DynamicData/cache/page_request.rs#L42)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `CloneToUninit`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ToOwned`
- `ToString`
- `Equivalent<K>`
- `Clone`
- `Copy`
- `Debug`
- `StructuralPartialEq`
- `PartialEq`
- `Eq`
- `Hash`
- `Default`
- [`IPageRequest`](/docs/0.5.0/api/ferroui-dynamic-data/cache/trait-ipagerequest/)
- `Display`

## Availability

Extracted for `aarch64-apple-darwin`. Cargo features are listed in the [crate index](/docs/0.5.0/api/).
