Skip to content

Commit 6b263fc

Browse files
committed
DEL: Remove unused received variant
1 parent 53634c2 commit 6b263fc

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
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.32.0 - TBD
4+
5+
### Breaking changes
6+
- Removed unused `Received` variant from `JobState` enum
7+
38
## 0.31.0 - 2025-07-30
49

510
### Enhancements

src/historical/batch.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -218,8 +218,6 @@ pub enum Delivery {
218218
/// The state of a batch job.
219219
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
220220
pub enum JobState {
221-
/// The job has been received (the initial state).
222-
Received,
223221
/// The job has been queued for processing.
224222
Queued,
225223
/// The job has begun processing.
@@ -374,7 +372,7 @@ pub struct BatchJob {
374372
/// get a builder type with all the preset defaults.
375373
#[derive(Debug, Clone, Default, TypedBuilder, PartialEq, Eq)]
376374
pub struct ListJobsParams {
377-
/// The optional filter for job states.
375+
/// The optional filter for job states. If `None`, defaults to all except `Expired`.
378376
#[builder(default, setter(strip_option))]
379377
pub states: Option<Vec<JobState>>,
380378
/// The optional filter for timestamp submitted (will not include jobs prior to
@@ -497,7 +495,6 @@ impl JobState {
497495
/// Converts the enum to its `str` representation.
498496
pub const fn as_str(&self) -> &'static str {
499497
match self {
500-
JobState::Received => "received",
501498
JobState::Queued => "queued",
502499
JobState::Processing => "processing",
503500
JobState::Done => "done",
@@ -517,7 +514,6 @@ impl FromStr for JobState {
517514

518515
fn from_str(s: &str) -> Result<Self, Self::Err> {
519516
match s {
520-
"received" => Ok(JobState::Received),
521517
"queued" => Ok(JobState::Queued),
522518
"processing" => Ok(JobState::Processing),
523519
"done" => Ok(JobState::Done),

0 commit comments

Comments
 (0)