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

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

## create_file

`POST /files/{file_id}`

| Parameter | In | Type | Required |
|---|---|---|---|
| `file_id` | path | `String` | yes |
| `fields` | query | `Vec<String>` | no |

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

**Returns:** `TrashFileRestored`

**Example**

```rust
let result = client.trashed_files.create_file("FILE_ID".to_string(), schemas::FileCreateRequest { /* … */ }, None).await?;
```

## get_file_trash

`GET /files/{file_id}/trash`

| Parameter | In | Type | Required |
|---|---|---|---|
| `file_id` | path | `String` | yes |
| `fields` | query | `Vec<String>` | no |

**Returns:** `TrashFile`

**Example**

```rust
let result = client.trashed_files.get_file_trash("FILE_ID".to_string(), None).await?;
```

## delete_file_trash

`DELETE /files/{file_id}/trash`

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

**Returns:** no content

**Example**

```rust
client.trashed_files.delete_file_trash("FILE_ID".to_string()).await?;
```