pub struct ResolveClarification {
pub context: InteractionMutationContext,
pub session_id: SessionId,
pub run_id: RunId,
pub clarification_id: String,
pub answers: Vec<ClarificationAnswer>,
pub response: Option<String>,
pub resolved_by: Option<String>,
}Expand description
Atomic clarification-resolution command.
Fields§
§context: InteractionMutationContextShared mutation evidence.
session_id: SessionIdOwning session.
run_id: RunIdOwning run.
clarification_id: StringApproval identity representing the clarification.
answers: Vec<ClarificationAnswer>Answers, exactly one per durable request question.
response: Option<String>Optional aggregate response retained with answer metadata.
resolved_by: Option<String>Actor resolving the clarification.
Implementations§
Source§impl ResolveClarification
impl ResolveClarification
Sourcepub fn validate(&self) -> SessionStoreResult<()>
pub fn validate(&self) -> SessionStoreResult<()>
Validate command-local invariants that do not require the durable request.
§Errors
Returns an error when shared mutation evidence is invalid, an identity is empty, or an optional response/resolver is present but empty.
Trait Implementations§
Source§impl Clone for ResolveClarification
impl Clone for ResolveClarification
Source§fn clone(&self) -> ResolveClarification
fn clone(&self) -> ResolveClarification
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ResolveClarification
impl Debug for ResolveClarification
impl Eq for ResolveClarification
Source§impl PartialEq for ResolveClarification
impl PartialEq for ResolveClarification
impl StructuralPartialEq for ResolveClarification
Auto Trait Implementations§
impl Freeze for ResolveClarification
impl RefUnwindSafe for ResolveClarification
impl Send for ResolveClarification
impl Sync for ResolveClarification
impl Unpin for ResolveClarification
impl UnsafeUnpin for ResolveClarification
impl UnwindSafe for ResolveClarification
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