Skip to content

Commit 9c9f0d5

Browse files
committed
DEL: Remove unused delivery variants
1 parent d2b6262 commit 9c9f0d5

File tree

2 files changed

+7
-10
lines changed

2 files changed

+7
-10
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog
22

3+
## 0.30.1 - TBD
4+
5+
### Bug fixes
6+
- Removed unused `S3` and `Disk` variants from `Delivery` enum
7+
38
## 0.30.0 - 2025-07-22
49

510
### Breaking changes

src/historical/batch.rs

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -213,10 +213,6 @@ pub enum Delivery {
213213
/// Via download from the Databento portal.
214214
#[default]
215215
Download,
216-
/// Via Amazon S3.
217-
S3,
218-
/// Via disk.
219-
Disk,
220216
}
221217

222218
/// The state of a batch job.
@@ -281,8 +277,8 @@ pub struct SubmitJobParams {
281277
/// Must be an integer between 1e9 and 10e9 inclusive (1GB - 10GB). Defaults to `None`.
282278
#[builder(default, setter(strip_option))]
283279
pub split_size: Option<NonZeroU64>,
284-
/// The delivery mechanism for the batched data files once processed. Defaults to
285-
/// [`Download`](Delivery::Download).
280+
/// The delivery mechanism for the batched data files once processed.
281+
/// Only [`Download`](Delivery::Download) is supported at this time.
286282
#[builder(default)]
287283
pub delivery: Delivery,
288284
/// The symbology type of the input `symbols`. Defaults to
@@ -463,8 +459,6 @@ impl Delivery {
463459
pub const fn as_str(&self) -> &'static str {
464460
match self {
465461
Delivery::Download => "download",
466-
Delivery::S3 => "s3",
467-
Delivery::Disk => "disk",
468462
}
469463
}
470464
}
@@ -481,8 +475,6 @@ impl FromStr for Delivery {
481475
fn from_str(s: &str) -> Result<Self, Self::Err> {
482476
match s {
483477
"download" => Ok(Delivery::Download),
484-
"s3" => Ok(Delivery::S3),
485-
"disk" => Ok(Delivery::Disk),
486478
_ => Err(crate::Error::bad_arg(
487479
"s",
488480
format!(

0 commit comments

Comments
 (0)