pub struct SuspendedCall {
pub call_id: String,
pub tool_name: String,
pub arguments: Value,
pub ticket: SuspendTicket,
}Fields§
§call_id: StringOriginal backend call identity.
tool_name: StringOriginal backend tool name.
arguments: ValueOriginal backend tool arguments.
ticket: SuspendTicketSuspension ticket carrying interaction payload, pending projection, and resume strategy.
Implementations§
Source§impl SuspendedCall
impl SuspendedCall
Sourcepub fn new(call: &ToolCall, ticket: SuspendTicket) -> Self
pub fn new(call: &ToolCall, ticket: SuspendTicket) -> Self
Create a suspended call from a tool call and a suspend ticket.
Sourcepub fn into_state_action(self) -> AnyStateAction
pub fn into_state_action(self) -> AnyStateAction
Convert into a type-erased state action targeting this call’s scope.
Equivalent to AnyStateAction::new_for_call::<SuspendedCallState>(Set(self), call_id)
but hides the internal SuspendedCallState / SuspendedCallAction types.
Trait Implementations§
Source§impl Clone for SuspendedCall
impl Clone for SuspendedCall
Source§fn clone(&self) -> SuspendedCall
fn clone(&self) -> SuspendedCall
Returns a duplicate of the value. Read more
1.0.0 · 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 SuspendedCall
impl Debug for SuspendedCall
Source§impl Default for SuspendedCall
impl Default for SuspendedCall
Source§fn default() -> SuspendedCall
fn default() -> SuspendedCall
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SuspendedCall
impl<'de> Deserialize<'de> for SuspendedCall
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
Source§impl PartialEq for SuspendedCall
impl PartialEq for SuspendedCall
Source§impl Serialize for SuspendedCall
impl Serialize for SuspendedCall
impl StructuralPartialEq for SuspendedCall
Auto Trait Implementations§
impl Freeze for SuspendedCall
impl RefUnwindSafe for SuspendedCall
impl Send for SuspendedCall
impl Sync for SuspendedCall
impl Unpin for SuspendedCall
impl UnwindSafe for SuspendedCall
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