#[non_exhaustive]pub struct ScheduleDef {
pub name: Box<str>,
pub at_column: ColId,
pub id_column: ColId,
pub reducer_name: Identifier,
}Expand description
Marks a table as a timer table for a scheduled reducer.
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.name: Box<str>The name of the schedule. Must be unique within the containing ModuleDef.
at_column: ColIdThe name of the column that stores the desired invocation time.
Must be named scheduled_at and be of type ScheduleAt.
id_column: ColIdThe name of the column that stores the invocation ID.
Must be named scheduled_id and be of type u64.
reducer_name: IdentifierThe name of the reducer to call. Not yet an Identifier because
reducer names are not currently validated.
Trait Implementations§
Source§impl Clone for ScheduleDef
impl Clone for ScheduleDef
Source§fn clone(&self) -> ScheduleDef
fn clone(&self) -> ScheduleDef
Returns a duplicate of the value. Read more
1.0.0 · 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 ScheduleDef
impl Debug for ScheduleDef
Source§impl From<ScheduleDef> for RawScheduleDefV9
impl From<ScheduleDef> for RawScheduleDefV9
Source§fn from(val: ScheduleDef) -> Self
fn from(val: ScheduleDef) -> Self
Converts to this type from the input type.
Source§impl ModuleDefLookup for ScheduleDef
impl ModuleDefLookup for ScheduleDef
Source§impl PartialEq for ScheduleDef
impl PartialEq for ScheduleDef
impl Eq for ScheduleDef
impl StructuralPartialEq for ScheduleDef
Auto Trait Implementations§
impl Freeze for ScheduleDef
impl RefUnwindSafe for ScheduleDef
impl Send for ScheduleDef
impl Sync for ScheduleDef
impl Unpin for ScheduleDef
impl UnwindSafe for ScheduleDef
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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>
Converts
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>
Converts
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