# Schedules
Obtained via `client.schedules()` (collection) and `client.schedule(id)` (single).
## `ScheduleCollectionClient`
| `list(options)` | `ListOptions` | `PaginationList<Schedule>` | Lists schedules. |
| `create(schedule)` | `&impl Serialize` | `Schedule` | Creates a schedule. |
## `ScheduleClient`
| `get()` | — | `Option<Schedule>` | Fetches the schedule. |
| `update(fields)` | `&impl Serialize` | `Schedule` | Updates the schedule. |
| `delete()` | — | `()` | Deletes the schedule. |
| `get_log()` | — | `Option<String>` | Fetches the schedule's invocation log. |
## The `Schedule` model
Returned by `get`, `create`, `update` and (as `PaginationList<Schedule>`) by `list`. Unknown
fields returned by the API are preserved in `extra`.
| `id` | `String` | Unique schedule ID (always present); used to build a `client.schedule(&schedule.id)` client. |
| `user_id` | `Option<String>` | ID of the user who owns the schedule. |
| `name` | `Option<String>` | Technical name of the schedule. |
| `cron_expression` | `Option<String>` | The cron expression that determines when the schedule fires. |
| `is_enabled` | `Option<bool>` | Whether the schedule is currently enabled. |
| `extra` | `Extra` | Any other fields returned by the API. |