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

Source: https://databento.com/docs/api-historical/helpers/metadata-get-dataset-condition-params


### GetDatasetConditionParams

The parameter struct and builder for [HistoricalClient::metadata::get_dataset_condition](https://databento.com/docs/api-historical/metadata/metadata-get-dataset-condition.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 GetDatasetConditionParams {
    pub dataset: String,
    pub date_range: Option<DateRange>,
}
```

#### Fields

| Field | Type | Description |
| `dataset` | String | The [dataset](https://databento.com/docs/api-historical/basics/datasets.md) code (string identifier). Must be one of the values from [list_datasets](https://databento.com/docs/api-historical/metadata/metadata-list-datasets.md). |
| `date_range` | Option\ | The UTC date request range with an inclusive start date and an inclusive end date. If `None` then will return all available dates. |

#### Example usage

```rust
use databento::{
    dbn::Dataset,
    historical::metadata::GetDatasetConditionParams,
};

assert_eq!(
    GetDatasetConditionParams {
        dataset: "XNAS.ITCH".to_owned(),
        date_range: None
    },
    GetDatasetConditionParams::builder()
        .dataset(Dataset::XnasItch)
        .build()
);
```
