Skip to main content

CeremonyStepHandlerRequest

Struct CeremonyStepHandlerRequest 

Source
pub struct CeremonyStepHandlerRequest { /* private fields */ }

Implementations§

Source§

impl CeremonyStepHandlerRequest

Source

pub fn new( instance_id: CeremonyId, definition_name: CeremonyName, definition_version: CeremonyVersion, current_state: StateId, step_id: StepId, handler_kind: StepHandlerKind, handler_config: StepHandlerConfig, context: CeremonyContext, attempt: StepAttempt, ) -> Self

Source

pub fn with_transcript(self, transcript: CeremonyTranscript) -> Self

Attach the prior-step transcript the engine accumulated for this ceremony, so the handler can deliberate with earlier interventions in view. Defaults to an empty transcript when not set.

Source

pub fn with_interventions( self, interventions: Vec<CeremonyIntervention>, ) -> Self

Attach the participant-created agenda accumulated by the running ceremony. Declaration order is retained so handlers see the same conversational sequence as the participants.

Source

pub fn with_bound_specialty(self, specialty: Option<Specialty>) -> Self

Attach the specialty this session seated for the role, so the handler puts the work to that panel instead of the one the step declares. None leaves the step’s own configuration deciding.

Source

pub fn with_role(self, role_id: RoleId) -> Self

Attach the ceremony role this step is executed as, so the handler can frame the agent’s persona. Defaults to none when not set.

Source

pub fn instance_id(&self) -> &CeremonyId

Source

pub fn definition_name(&self) -> &CeremonyName

Source

pub fn definition_version(&self) -> &CeremonyVersion

Source

pub fn current_state(&self) -> &StateId

Source

pub fn step_id(&self) -> &StepId

Source

pub fn handler_kind(&self) -> &StepHandlerKind

Source

pub fn handler_config(&self) -> &StepHandlerConfig

Source

pub fn context(&self) -> &CeremonyContext

Source

pub fn attempt(&self) -> StepAttempt

Source

pub fn transcript(&self) -> &CeremonyTranscript

The transcript of interventions produced by earlier steps of this ceremony.

Source

pub fn interventions(&self) -> &[CeremonyIntervention]

Dynamic participant requests and responses known to the ceremony.

Source

pub fn bound_specialty(&self) -> Option<&Specialty>

The panel this session seated for the role, if it seated one.

Source

pub fn role_id(&self) -> Option<&RoleId>

The ceremony role this step is executed as, if set.

Source

pub fn semantic_request_bytes( &self, ) -> Result<ExecutionRequestBytes, DomainError>

Canonical semantic input for recoverable execution.

Technical attempts and lease timestamps are deliberately absent: a reclaim is another claim of the same external operation. All fields that may change what the handler does remain sealed here.

Trait Implementations§

Source§

impl Clone for CeremonyStepHandlerRequest

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for CeremonyStepHandlerRequest

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for CeremonyStepHandlerRequest

Source§

impl PartialEq for CeremonyStepHandlerRequest

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for CeremonyStepHandlerRequest

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.