pub struct ExecutorLink {
pub link_id: ExecutorLinkId,
pub agreement_id: AgreementId,
pub executor_contract: Address,
pub executor_interface_id: [u8; 32],
pub terms_commitment: [u8; 32],
pub activation_policy_id: PolicyId,
pub state: ExecutorState,
pub created_at: Timestamp,
pub updated_at: Timestamp,
pub created_at_height: BlockHeight,
pub activation_proof_id: Option<ProofId>,
}Expand description
SRC-845 Execution Link
Fields§
§link_id: ExecutorLinkIdUnique link identifier
agreement_id: AgreementIdAgreement being linked
executor_contract: AddressExecutor contract address
executor_interface_id: [u8; 32]Executor interface identifier (function selector or interface hash)
terms_commitment: [u8; 32]Terms commitment (must match what executor expects)
activation_policy_id: PolicyIdPolicy ID for activation/modification
state: ExecutorStateCurrent lifecycle state
created_at: TimestampWhen link was created
updated_at: TimestampLast state change
created_at_height: BlockHeightBlock height when created
activation_proof_id: Option<ProofId>Optional: proof envelope for activation
Implementations§
Source§impl ExecutorLink
impl ExecutorLink
Sourcepub fn generate_id(
agreement_id: &AgreementId,
executor_contract: &Address,
nonce: &[u8; 32],
) -> ExecutorLinkId
pub fn generate_id( agreement_id: &AgreementId, executor_contract: &Address, nonce: &[u8; 32], ) -> ExecutorLinkId
Generate executor link ID
Trait Implementations§
Source§impl Clone for ExecutorLink
impl Clone for ExecutorLink
Source§fn clone(&self) -> ExecutorLink
fn clone(&self) -> ExecutorLink
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 ExecutorLink
impl Debug for ExecutorLink
Source§impl<'de> Deserialize<'de> for ExecutorLink
impl<'de> Deserialize<'de> for ExecutorLink
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 ExecutorLink
impl PartialEq for ExecutorLink
Source§fn eq(&self, other: &ExecutorLink) -> bool
fn eq(&self, other: &ExecutorLink) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ExecutorLink
impl Serialize for ExecutorLink
impl Eq for ExecutorLink
impl StructuralPartialEq for ExecutorLink
Auto Trait Implementations§
impl Freeze for ExecutorLink
impl RefUnwindSafe for ExecutorLink
impl Send for ExecutorLink
impl Sync for ExecutorLink
impl Unpin for ExecutorLink
impl UnsafeUnpin for ExecutorLink
impl UnwindSafe for ExecutorLink
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