pub struct Job {
pub layout: String,
pub schedule: String,
pub timezone: String,
pub parameters: BTreeMap<String, ParameterValue>,
pub formats: Vec<Format>,
pub deliveries: Vec<Delivery>,
pub skip_if_empty: bool,
pub retries: u32,
pub retention_days: u32,
pub enabled: bool,
}Expand description
A scheduled report.
Fields§
§layout: StringThe stored layout to render, by name; its latest version at each run.
schedule: StringWhen to run, as five cron fields.
timezone: StringThe time zone of the schedule and of Today(), such as America/Recife.
parameters: BTreeMap<String, ParameterValue>Parameter values, fixed or computed at each run.
formats: Vec<Format>The files to produce.
deliveries: Vec<Delivery>Where they go.
skip_if_empty: boolSends nothing when the report has no rows.
retries: u32How many times to try again after a failure.
retention_days: u32Keeps each run’s files on the server for this many days; zero keeps none.
enabled: boolA disabled job runs only when asked.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Job
impl<'de> Deserialize<'de> for Job
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Job
Auto Trait Implementations§
impl Freeze for Job
impl RefUnwindSafe for Job
impl Send for Job
impl Sync for Job
impl Unpin for Job
impl UnsafeUnpin for Job
impl UnwindSafe for Job
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more