pub struct JobDefinition {
pub job_id: u64,
pub kind: JobKind,
pub state: JobState,
pub target: Option<String>,
pub created_epoch: u64,
pub updated_epoch: u64,
}Expand description
Persistent job definition recorded in the catalog (spec §10.6, S1F-001).
kind/state are the canonical S1F-002 types re-exported above; the live
state machine and per-job progress live in the JOBS registry
(crate::jobs::JobRegistry).
Fields§
§job_id: u64Unique, caller-allocated job id. Never reused.
kind: JobKind§state: JobState§target: Option<String>Primary target (table, index, or materialized-view name), if any.
created_epoch: u64§updated_epoch: u64Trait Implementations§
Source§impl Clone for JobDefinition
impl Clone for JobDefinition
Source§fn clone(&self) -> JobDefinition
fn clone(&self) -> JobDefinition
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 JobDefinition
impl Debug for JobDefinition
Source§impl<'de> Deserialize<'de> for JobDefinition
impl<'de> Deserialize<'de> for JobDefinition
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
impl Eq for JobDefinition
Source§impl PartialEq for JobDefinition
impl PartialEq for JobDefinition
Source§impl Serialize for JobDefinition
impl Serialize for JobDefinition
impl StructuralPartialEq for JobDefinition
Auto Trait Implementations§
impl Freeze for JobDefinition
impl RefUnwindSafe for JobDefinition
impl Send for JobDefinition
impl Sync for JobDefinition
impl Unpin for JobDefinition
impl UnsafeUnpin for JobDefinition
impl UnwindSafe for JobDefinition
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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