pub struct ReportSchedule {
pub active: Option<bool>,
pub every: Option<i32>,
pub expiration_date: Option<NaiveDate>,
pub repeats: Option<String>,
pub repeats_on_week_days: Option<Vec<String>>,
pub runs_on_day_of_month: Option<String>,
pub start_date: Option<NaiveDate>,
}Expand description
The report’s schedule. Can only be set if the report’s ‘dateRange’ is a relative date range and the relative date range is not “TODAY”.
This type is not used in any activity, and only used as part of another schema.
Fields§
§active: Option<bool>Whether the schedule is active or not. Must be set to either true or false.
every: Option<i32>Defines every how many days, weeks or months the report should be run. Needs to be set when “repeats” is either “DAILY”, “WEEKLY” or “MONTHLY”.
expiration_date: Option<NaiveDate>The expiration date when the scheduled report stops running.
repeats: Option<String>The interval for which the report is repeated. Note:
- “DAILY” also requires field “every” to be set.
- “WEEKLY” also requires fields “every” and “repeatsOnWeekDays” to be set.
- “MONTHLY” also requires fields “every” and “runsOnDayOfMonth” to be set.
repeats_on_week_days: Option<Vec<String>>List of week days “WEEKLY” on which scheduled reports should run.
runs_on_day_of_month: Option<String>Enum to define for “MONTHLY” scheduled reports whether reports should be repeated on the same day of the month as “startDate” or the same day of the week of the month. Example: If ‘startDate’ is Monday, April 2nd 2012 (2012-04-02), “DAY_OF_MONTH” would run subsequent reports on the 2nd of every Month, and “WEEK_OF_MONTH” would run subsequent reports on the first Monday of the month.
start_date: Option<NaiveDate>Start date of date range for which scheduled reports should be run.
Trait Implementations§
Source§impl Clone for ReportSchedule
impl Clone for ReportSchedule
Source§fn clone(&self) -> ReportSchedule
fn clone(&self) -> ReportSchedule
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ReportSchedule
impl Debug for ReportSchedule
Source§impl Default for ReportSchedule
impl Default for ReportSchedule
Source§fn default() -> ReportSchedule
fn default() -> ReportSchedule
Source§impl<'de> Deserialize<'de> for ReportSchedule
impl<'de> Deserialize<'de> for ReportSchedule
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>,
Source§impl Serialize for ReportSchedule
impl Serialize for ReportSchedule
impl NestedType for ReportSchedule
impl Part for ReportSchedule
Auto Trait Implementations§
impl Freeze for ReportSchedule
impl RefUnwindSafe for ReportSchedule
impl Send for ReportSchedule
impl Sync for ReportSchedule
impl Unpin for ReportSchedule
impl UnwindSafe for ReportSchedule
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more