pub struct ScheduleEntry {
pub cron: String,
pub message: String,
pub sends_to: Option<String>,
pub not_after: Option<String>,
}Fields§
§cron: String§message: String§sends_to: Option<String>§not_after: Option<String>Retire the entry once its next firing would fall after this instant (RFC3339 with offset). How a one-shot reminder is expressed: cron has no year field, so “tomorrow at 10:00” can only be written as an annual recurrence, and unbounded it turns a request for one morning into a perpetual commitment (#1119).
A bound rather than a fired-yet flag, because the scheduler runs inside
the agent’s own sandbox where profile.yaml is denied
(SELF_PROTECTED_AGENT_FILES, #712) — it cannot record that an entry has
fired. Comparing the next firing against a stored instant needs no write
at all, so the bound works where a flag structurally could not.
Trait Implementations§
Source§impl Clone for ScheduleEntry
impl Clone for ScheduleEntry
Source§fn clone(&self) -> ScheduleEntry
fn clone(&self) -> ScheduleEntry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ScheduleEntry
impl Debug for ScheduleEntry
Source§impl<'de> Deserialize<'de> for ScheduleEntry
impl<'de> Deserialize<'de> for ScheduleEntry
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
Source§impl PartialEq for ScheduleEntry
impl PartialEq for ScheduleEntry
Source§impl Serialize for ScheduleEntry
impl Serialize for ScheduleEntry
impl StructuralPartialEq for ScheduleEntry
Auto Trait Implementations§
impl Freeze for ScheduleEntry
impl RefUnwindSafe for ScheduleEntry
impl Send for ScheduleEntry
impl Sync for ScheduleEntry
impl Unpin for ScheduleEntry
impl UnsafeUnpin for ScheduleEntry
impl UnwindSafe for ScheduleEntry
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