pub struct InputBinding {
pub run_id: String,
pub node_id: String,
pub node_visit: u64,
pub predecessors: Vec<PredecessorInput>,
pub shared: Vec<SharedResourceRef>,
pub input_adapter_version: u32,
pub arrival_order: Vec<String>,
}Expand description
What composed one node visit’s input.
Every field is an identity rather than a summary of one: the declared predecessor results at their exact visits, the shared revisions the reader observed, and the adapter that projected them. A reader of this value can tell whether a node’s input came from its declared dependencies, which is exactly what a final-state check cannot tell.
Fields§
§run_id: String§node_id: String§node_visit: u64§predecessors: Vec<PredecessorInput>Declared predecessor contributions in the definition’s order. Arrival order is not part of this list, so completing B before A cannot change a binding unless the node declares that order matters.
Shared resources read, in declaration order, at the revision observed.
input_adapter_version: u32§arrival_order: Vec<String>The arrival order of predecessor contributions, recorded only for a node that declares its business order sensitive. Empty means “order is not part of this input’s meaning”.
Implementations§
Source§impl InputBinding
impl InputBinding
Sourcepub fn key(node_id: &str, node_visit: u64) -> String
pub fn key(node_id: &str, node_visit: u64) -> String
The lookup key of one node visit in the run’s binding ledger.
Sourcepub fn digest(&self) -> String
pub fn digest(&self) -> String
A canonical digest of this binding: the identity a caller can persist beside a command to prove later which inputs it was computed from.
The revision this binding observed for one resource, if it read it.
The revision this binding observed for one key, if the key existed and the binding read its resource.
Trait Implementations§
Source§impl Clone for InputBinding
impl Clone for InputBinding
Source§fn clone(&self) -> InputBinding
fn clone(&self) -> InputBinding
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for InputBinding
impl Debug for InputBinding
Source§impl<'de> Deserialize<'de> for InputBinding
impl<'de> Deserialize<'de> for InputBinding
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<InputBinding, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<InputBinding, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
impl Eq for InputBinding
Source§impl PartialEq for InputBinding
impl PartialEq for InputBinding
Source§impl Serialize for InputBinding
impl Serialize for InputBinding
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl StructuralPartialEq for InputBinding
Auto Trait Implementations§
impl Forget for InputBinding
impl Freeze for InputBinding
impl Move for InputBinding
impl RefUnwindSafe for InputBinding
impl Send for InputBinding
impl Sync for InputBinding
impl Unpin for InputBinding
impl UnsafeUnpin for InputBinding
impl UnwindSafe for InputBinding
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
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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
key and return true if they are equal.