# PageResponse

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

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

```rust
struct PageResponse
```

The page that a paged change set holds (`PageResponse`). Two responses are equal when their
parts are (`PageResponse.DefaultComparer`).

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

## Members

- [`new`](#function-new)
- [`page`](#function-page)
- [`pages`](#function-pages)
- [`page_size`](#function-page_size)
- [`total_size`](#function-total_size)

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

### new

```rust
const fn new(page_size: usize, total_size: usize, page: usize, pages: usize) -> Self
```

The page `page` of `pages`, of `page_size` items, of `total_size` items in all
(`PageResponse(int pageSize, int totalSize, int page, int pages)`).

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

<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_response.rs#L35)

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

### pages

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

The number of pages (`Pages`).

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

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

### page_size

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

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

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

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

### total_size

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

The number of items of all the pages (`TotalSize`).

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

## 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`
- `Default`
- `StructuralPartialEq`
- `PartialEq`
- `Eq`
- `Hash`
- [`IPageResponse`](/docs/0.5.0/api/ferroui-dynamic-data/cache/trait-ipageresponse/)
- `Display`

## Availability

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