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

source§

fn clone(&self) -> ReportSchedule

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for ReportSchedule

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for ReportSchedule

source§

fn default() -> ReportSchedule

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for ReportSchedule

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Serialize for ReportSchedule

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl NestedType for ReportSchedule

source§

impl Part for ReportSchedule

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,