#[non_exhaustive]pub enum Trigger {
Schedule(String),
}Expand description
Determines when discovery is triggered.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Schedule(String)
Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for running discovery periodically. Successive discovery runs must be scheduled at least 60 minutes apart. The default value is to run discovery every 60 minutes.
To explicitly set a timezone to the cron tab, apply a prefix in the
cron tab: “CRON_TZ=${IANA_TIME_ZONE}” or TZ=${IANA_TIME_ZONE}“.
The ${IANA_TIME_ZONE} may only be a valid string from IANA time zone
database. For example, CRON_TZ=America/New_York 1 * * * *, or
TZ=America/New_York 1 * * * *.
Trait Implementations§
impl StructuralPartialEq for Trigger
Auto Trait Implementations§
impl Freeze for Trigger
impl RefUnwindSafe for Trigger
impl Send for Trigger
impl Sync for Trigger
impl Unpin for Trigger
impl UnwindSafe for Trigger
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