pub struct ParticipantCommandTrust { /* private fields */ }Expand description
业务作用:冻结一个 workflow definition 可向本 Participant 发命令的逻辑 Orchestrator。
信任投影同时锚定 workflow、version 与 digest;共享 Participant 的多个业务域不能只凭 “某个已登记 Orchestrator”身份跨流程发起 execute、cancel、compensate 或 resolve。
Implementations§
Source§impl ParticipantCommandTrust
impl ParticipantCommandTrust
Sourcepub fn new(
producer: ServiceIdentity,
workflow: WorkflowName,
definition_version: DefinitionVersion,
definition_digest: impl Into<String>,
) -> Result<Self>
pub fn new( producer: ServiceIdentity, workflow: WorkflowName, definition_version: DefinitionVersion, definition_digest: impl Into<String>, ) -> Result<Self>
业务作用:从受信 deployment/definition projection 构造一条精确 command 授权边。
参数说明:
producer: 该 definition 的逻辑 Orchestrator 身份。workflow: 投影绑定的 workflow 名称。definition_version: 投影绑定的不可变 definition 版本。definition_digest: 投影绑定的 64 位小写十六进制摘要。
返回:摘要编码合法时返回冻结投影;非法摘要在 consumer Ready 前拒绝启动。
Sourcepub fn for_definition_version(
producer: ServiceIdentity,
workflow: WorkflowName,
definition_version: DefinitionVersion,
) -> Self
pub fn for_definition_version( producer: ServiceIdentity, workflow: WorkflowName, definition_version: DefinitionVersion, ) -> Self
业务作用:为动态 Catalog 参与方构造按 workflow/version 限定的 Orchestrator 授权边。
participant 只发布自身 capability,不持有完整流程 seal;命令仍需通过 transport 身份认证、 envelope 派生复验与宏生成的精确步骤门禁,完整 digest 由 Orchestrator 的持久实例权威负责。
参数说明:producer 是获准协调者,workflow 与 definition_version 是本地 handler 支持范围。
返回:不依赖完整 workflow projection 的受限信任边。
Trait Implementations§
Source§impl Clone for ParticipantCommandTrust
impl Clone for ParticipantCommandTrust
Source§impl Debug for ParticipantCommandTrust
impl Debug for ParticipantCommandTrust
impl Eq for ParticipantCommandTrust
Source§impl PartialEq for ParticipantCommandTrust
impl PartialEq for ParticipantCommandTrust
impl StructuralPartialEq for ParticipantCommandTrust
Auto Trait Implementations§
impl Freeze for ParticipantCommandTrust
impl RefUnwindSafe for ParticipantCommandTrust
impl Send for ParticipantCommandTrust
impl Sync for ParticipantCommandTrust
impl Unpin for ParticipantCommandTrust
impl UnsafeUnpin for ParticipantCommandTrust
impl UnwindSafe for ParticipantCommandTrust
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