pub struct SagaStepDescriptor {
pub payload_content_type: &'static str,
pub payload_schema_id: &'static str,
pub workflow: &'static str,
pub definition_version: u32,
pub step: &'static str,
pub binding: Option<&'static str>,
pub service_type: &'static str,
pub compensation: Compensation,
pub cancel_mode: CancelMode,
pub allow_unknown: bool,
pub resolution_mode: Option<ResolutionMode>,
pub source: &'static str,
}Expand description
业务作用:#[saga] 为每个本地步骤生成的静态合同投影。
Fields§
§payload_content_type: &'static str本 handler 接受的规范媒体类型。
payload_schema_id: &'static str本 handler 支持的稳定 schema 身份。
workflow: &'static strworkflow 名称。
definition_version: u32definition 版本。
step: &'static str步骤名称。
binding: Option<&'static str>多事务域参与方使用的显式 datasource binding;单事务域可省略。
service_type: &'static str业务 Service 类型名。
compensation: Compensation是否可补偿。
cancel_mode: CancelMode取消形态。
allow_unknown: bool是否允许返回 Unknown。
resolution_mode: Option<ResolutionMode>本地托管的解决能力。
source: &'static str源码位置,只用于启动拒绝时定位重复合同。
Trait Implementations§
Source§impl Clone for SagaStepDescriptor
impl Clone for SagaStepDescriptor
impl Copy for SagaStepDescriptor
Auto Trait Implementations§
impl Forget for SagaStepDescriptor
impl Freeze for SagaStepDescriptor
impl Move for SagaStepDescriptor
impl RefUnwindSafe for SagaStepDescriptor
impl Send for SagaStepDescriptor
impl Sync for SagaStepDescriptor
impl Unpin for SagaStepDescriptor
impl UnsafeUnpin for SagaStepDescriptor
impl UnwindSafe for SagaStepDescriptor
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