#[non_exhaustive]pub struct Schedule {
pub schedule_time: Option<Timestamp>,
pub interval_duration_days: i32,
/* private fields */
}Expand description
Scan schedule configuration.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.schedule_time: Option<Timestamp>A timestamp indicates when the next run will be scheduled. The value is refreshed by the server after each run. If unspecified, it will default to current server time, which means the scan will be scheduled to start immediately.
interval_duration_days: i32Required. The duration of time between executions in days.
Implementations§
Source§impl Schedule
impl Schedule
pub fn new() -> Self
Sourcepub fn set_schedule_time<T>(self, v: T) -> Self
pub fn set_schedule_time<T>(self, v: T) -> Self
Sets the value of schedule_time.
§Example
ⓘ
use wkt::Timestamp;
let x = Schedule::new().set_schedule_time(Timestamp::default()/* use setters */);Sourcepub fn set_or_clear_schedule_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_schedule_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of schedule_time.
§Example
ⓘ
use wkt::Timestamp;
let x = Schedule::new().set_or_clear_schedule_time(Some(Timestamp::default()/* use setters */));
let x = Schedule::new().set_or_clear_schedule_time(None::<Timestamp>);Sourcepub fn set_interval_duration_days<T: Into<i32>>(self, v: T) -> Self
pub fn set_interval_duration_days<T: Into<i32>>(self, v: T) -> Self
Sets the value of interval_duration_days.
§Example
ⓘ
let x = Schedule::new().set_interval_duration_days(42);Trait Implementations§
impl StructuralPartialEq for Schedule
Auto Trait Implementations§
impl Freeze for Schedule
impl RefUnwindSafe for Schedule
impl Send for Schedule
impl Sync for Schedule
impl Unpin for Schedule
impl UnwindSafe for Schedule
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