GoodMemGoodMem
ReferenceSdkRustTypes

AdminPurgeJobsRequest

Rust struct goodmem::models::AdminPurgeJobsRequest: declaration, fields or variants, and implementations.

All types

Struct AdminPurgeJobsRequest

goodmem::models::AdminPurgeJobsRequest

pub struct AdminPurgeJobsRequest {
    pub older_than: Option<String>,
    pub statuses: Option<Vec<PurgeableBackgroundJobStatus>>,
    pub dry_run: Option<bool>,
    pub limit: Option<i32>,
}

Referenced types: PurgeableBackgroundJobStatus.

Fields

older_than

pub older_than: Option<String>

ISO-8601 timestamp cutoff; only terminal jobs older than this instant are eligible. Wire name: olderThan.

statuses

pub statuses: Option<Vec<PurgeableBackgroundJobStatus>>

Optional terminal background job statuses to target for purging. If omitted, all terminal statuses are eligible. Canonical values are BACKGROUND_JOB_SUCCEEDED, BACKGROUND_JOB_FAILED, and BACKGROUND_JOB_CANCELED. Short aliases SUCCEEDED, FAILED, and CANCELED are also accepted for compatibility. Wire name: statuses.

dry_run

pub dry_run: Option<bool>

If true, report purge counts without deleting any rows. Wire name: dryRun.

limit

pub limit: Option<i32>

Maximum number of jobs to purge in this request. Must be >= 0; 0 means no limit. Wire name: limit.

Implementations

validate

pub fn validate(&self) -> crate::Result<()>

Validate the request before sending, without making an HTTP call.

Trait implementations

  • Clone (derived)
  • Default (derived)
  • PartialEq (derived)
  • Serialize (derived)
  • impl<'de> Deserialize<'de> for AdminPurgeJobsRequest
  • impl std::fmt::Debug for AdminPurgeJobsRequest

On this page