pub struct DeliberationCompletedEvent { /* private fields */ }Implementations§
Source§impl DeliberationCompletedEvent
impl DeliberationCompletedEvent
pub fn new( envelope: EventEnvelope, task_id: TaskId, specialty: Specialty, winner_proposal_id: ProposalId, winner_score: Score, num_candidates: u32, duration: DurationMs, ) -> Self
Sourcepub fn new_with_context(
envelope: EventEnvelope,
task_id: TaskId,
specialty: Specialty,
winner_proposal_id: ProposalId,
winner_score: Score,
num_candidates: u32,
duration: DurationMs,
external_context_bundle_id: Option<String>,
) -> Self
pub fn new_with_context( envelope: EventEnvelope, task_id: TaskId, specialty: Specialty, winner_proposal_id: ProposalId, winner_score: Score, num_candidates: u32, duration: DurationMs, external_context_bundle_id: Option<String>, ) -> Self
Variant that captures the bundle_id of the task’s
[ExternalContextBundle] (when present). Use this from
DeliberateUseCase so consumers can correlate the completion
envelope back to the bundle that fed it.
pub fn envelope(&self) -> &EventEnvelope
pub fn task_id(&self) -> &TaskId
pub fn specialty(&self) -> &Specialty
pub fn winner_proposal_id(&self) -> &ProposalId
pub fn winner_score(&self) -> Score
pub fn num_candidates(&self) -> u32
pub fn duration(&self) -> DurationMs
pub fn external_context_bundle_id(&self) -> Option<&str>
Trait Implementations§
Source§impl Clone for DeliberationCompletedEvent
impl Clone for DeliberationCompletedEvent
Source§impl Debug for DeliberationCompletedEvent
impl Debug for DeliberationCompletedEvent
Source§impl<'de> Deserialize<'de> for DeliberationCompletedEvent
impl<'de> Deserialize<'de> for DeliberationCompletedEvent
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
impl DomainEvent for DeliberationCompletedEvent
impl Eq for DeliberationCompletedEvent
impl StructuralPartialEq for DeliberationCompletedEvent
Auto Trait Implementations§
impl Freeze for DeliberationCompletedEvent
impl RefUnwindSafe for DeliberationCompletedEvent
impl Send for DeliberationCompletedEvent
impl Sync for DeliberationCompletedEvent
impl Unpin for DeliberationCompletedEvent
impl UnsafeUnpin for DeliberationCompletedEvent
impl UnwindSafe for DeliberationCompletedEvent
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