You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mediarepo/mediarepo-api/src/types/jobs.rs

15 lines
303 B
Rust

use serde::{Deserialize, Serialize};
#[derive(Serialize, Deserialize, Clone, Debug)]
pub struct RunJobRequest {
pub job_type: JobType,
pub sync: bool,
}
#[derive(Serialize, Deserialize, Clone, Debug)]
pub enum JobType {
MigrateContentDescriptors,
CalculateSizes,
CheckIntegrity,
}