cayu.sessions.ModelCompletionStageResult
Part of cayu.sessions.base. Read the Python API overview and install the required extra.
from cayu.sessions import ModelCompletionStageResultResult of preparing or terminally completing one immutable stage.
Bases: BaseModel.
Fields and attributes
Section titled “Fields and attributes”Defaults below are source expressions; Field(...) includes schema/validation settings and default_factory creates a fresh value. Inherited declarations are included. Constructor behavior follows the model or dataclass shown in the bases/decorators.
| Name | Type | Default |
|---|---|---|
stage |
ModelCompletionStage |
required |
replayed |
StrictBool |
required |
dispatch_authorized |
StrictBool |
required |
prepared_events |
tuple[Event, ...] |
Field(default_factory=tuple, exclude_if=lambda events: not events) |
copy_prepared_events (method)
Section titled “copy_prepared_events (method)”ModelCompletionStageResult.copy_prepared_events(value)validate_dispatch_authorization (method)
Section titled “validate_dispatch_authorization (method)”ModelCompletionStageResult.validate_dispatch_authorization() -> ModelCompletionStageResult