@@ -218,8 +218,6 @@ pub enum Delivery {
218218/// The state of a batch job.
219219#[ derive( Clone , Copy , Debug , PartialEq , Eq ) ]
220220pub 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 ) ]
376374pub 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