Available languages: [Python](https://databento.com/docs/api-historical/helpers/dbn-store-from-zstd-file.python.md) · [C++](https://databento.com/docs/api-historical/helpers/dbn-store-from-zstd-file.cpp.md) · [Rust](https://databento.com/docs/api-historical/helpers/dbn-store-from-zstd-file.rust.md) · [HTTP](https://databento.com/docs/api-historical/helpers/dbn-store-from-zstd-file.http.md)

Source: https://databento.com/docs/api-historical/helpers/dbn-store-from-zstd-file


### AsyncDbnStore::from_zstd_file

Create a new decoder from a Zstandard-compressed DBN file.
If the file is uncompressed, use [from_file](https://databento.com/docs/api-historical/helpers/dbn-store-from-file.md) instead.

#### API method

```rust
pub async fn from_zstd_file(
    path: impl AsRef<Path>,
) -> dbn::Result<Self>;
```

#### Parameters

| Parameter | Type | Description |
| `path` | impl AsRef | A path to a Zstandard-compressed DBN file. |

#### Returns

An [AsyncDbnStore](https://databento.com/docs/api-historical/helpers/dbn-store.md) object.

This function will return an error if it is unable to parse the metadata in the file or the input is encoded in a newer version of DBN.
