pub struct FlowDescriptor {
pub entrypoint: String,
pub args_hash: String,
pub explicit_key: Option<String>,
pub code_hash: Option<String>,
}Expand description
How a flow is identified and fenced. Identity is
(entrypoint, args_hash, explicit_key?) (spec §4.3); code_hash fences
replay across deploys (spec §4.4).
Fields§
§entrypoint: StringThe flow’s entrypoint, e.g. "py:pipeline.ingest:main".
args_hash: StringHash of the flow’s arguments; part of its identity.
explicit_key: Option<String>An optional explicit identity key, disambiguating two runs that share an entrypoint and args (spec §4.3).
code_hash: Option<String>Hash of the flow’s code, used to fence replay across deploys.
Implementations§
Source§impl FlowDescriptor
impl FlowDescriptor
Sourcepub fn flow_id(&self) -> FlowId
pub fn flow_id(&self) -> FlowId
The deterministic storage key for this identity. Deterministic (no ULID
clock/random draw) so a rerun with the same identity keys the same flow
row — which is what makes resume-on-rerun work through the idempotent
Journal::begin_flow.
Trait Implementations§
Source§impl Clone for FlowDescriptor
impl Clone for FlowDescriptor
Source§fn clone(&self) -> FlowDescriptor
fn clone(&self) -> FlowDescriptor
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 moreAuto Trait Implementations§
impl Freeze for FlowDescriptor
impl RefUnwindSafe for FlowDescriptor
impl Send for FlowDescriptor
impl Sync for FlowDescriptor
impl Unpin for FlowDescriptor
impl UnsafeUnpin for FlowDescriptor
impl UnwindSafe for FlowDescriptor
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