box-open-sdk 0.3.0

Box API client for Rust (open source, community, punk rock) — typed models, async managers, and a reqwest runtime with retry, backoff, and token refresh.
Documentation
<!-- Generated by box-gantry. DO NOT EDIT. -->
# HubDocumentManager

Reach these methods through the `hub_document` field on `client::Client`.

## list_pages

`GET /hub_document_pages`

| Parameter | In | Type | Required |
|---|---|---|---|
| `hub_id` | query | `String` | yes |
| `marker` | query | `String` | no |
| `limit` | query | `i64` | no |

**Returns:** `HubDocumentPages`

**Example**

```rust
let mut pages = client.hub_document.list_pages("HUB_ID".to_string(), None);
while let Some(item) = pages.next().await {
    // use item
}
```

Paginated — `list_pages(...)` returns a paginator you drive with `.next().await`, threading the cursor for you. See the [pagination guide](../pagination.md).

## list_blocks

`GET /hub_document_blocks`

| Parameter | In | Type | Required |
|---|---|---|---|
| `hub_id` | query | `String` | yes |
| `page_id` | query | `String` | yes |
| `marker` | query | `String` | no |
| `limit` | query | `i64` | no |

**Returns:** `HubDocumentBlocks`

**Example**

```rust
let mut pages = client.hub_document.list_blocks("HUB_ID".to_string(), "PAGE_ID".to_string(), None);
while let Some(item) = pages.next().await {
    // use item
}
```

Paginated — `list_blocks(...)` returns a paginator you drive with `.next().await`, threading the cursor for you. See the [pagination guide](../pagination.md).