box-open-sdk 0.3.1

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. -->
# HubCollaborationsManager

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

## list

`GET /hub_collaborations`

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

**Returns:** `HubCollaborations`

**Example**

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

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

## create

`POST /hub_collaborations`

**Request body** (`application/json`): `HubCollaborationCreateRequest`

**Returns:** `HubCollaboration`

**Example**

```rust
let result = client.hub_collaborations.create(schemas::HubCollaborationCreateRequest { /* … */ }).await?;
```

## get

`GET /hub_collaborations/{hub_collaboration_id}`

| Parameter | In | Type | Required |
|---|---|---|---|
| `hub_collaboration_id` | path | `String` | yes |

**Returns:** `HubCollaboration`

**Example**

```rust
let result = client.hub_collaborations.get("HUB_COLLABORATION_ID".to_string()).await?;
```

## update

`PUT /hub_collaborations/{hub_collaboration_id}`

| Parameter | In | Type | Required |
|---|---|---|---|
| `hub_collaboration_id` | path | `String` | yes |

**Request body** (`application/json`): `HubCollaborationUpdateRequest`

**Returns:** `HubCollaboration`

**Example**

```rust
let result = client.hub_collaborations.update("HUB_COLLABORATION_ID".to_string(), schemas::HubCollaborationUpdateRequest { /* … */ }).await?;
```

## delete

`DELETE /hub_collaborations/{hub_collaboration_id}`

| Parameter | In | Type | Required |
|---|---|---|---|
| `hub_collaboration_id` | path | `String` | yes |

**Returns:** no content

**Example**

```rust
client.hub_collaborations.delete("HUB_COLLABORATION_ID".to_string()).await?;
```