Available languages: [Python](https://databento.com/docs/api-historical/helpers/batch-list-jobs-params.python.md) · [C++](https://databento.com/docs/api-historical/helpers/batch-list-jobs-params.cpp.md) · [Rust](https://databento.com/docs/api-historical/helpers/batch-list-jobs-params.rust.md) · [HTTP](https://databento.com/docs/api-historical/helpers/batch-list-jobs-params.http.md)

Source: https://databento.com/docs/api-historical/helpers/batch-list-jobs-params


### ListJobsParams

The parameter struct and builder for [HistoricalClient::batch::list_jobs](https://databento.com/docs/api-historical/batch/batch-list-jobs.md).

The builder can be instantiated with the associated function `builder()`, and the struct is created from the builder with the `build()` method.
For every field, there is an identically named setter method on the builder.

#### API method

```rust
pub struct ListJobsParams {
    pub states: Option<Vec<JobState>>,
    pub since: Option<OffsetDateTime>,
}
```

#### Fields

| Parameter | Type | Description |
| `states` | Option\\> | The filter for job states. Can include `Queued`, `Processing`, `Done`, and `Expired`. If `None`, defaults to all except `Expired`. |
| `since` | Option\ | The filter for timestamp submitted (will not include jobs prior to this). |

#### Example usage

```rust
use databento::historical::batch::{JobState, ListJobsParams};
use time::macros::datetime;

assert_eq!(
    ListJobsParams {
        states: Some(vec![JobState::Done]),
        since: Some(datetime!(2023-11-06 00:00 UTC))
    },
    ListJobsParams::builder()
        .states(vec![JobState::Done])
        .since(datetime!(2023-11-06 00:00 UTC))
        .build()
);
```
