pub struct TurnCancelParams {
pub session_id: String,
pub turn_id: String,
pub clear_queue: bool,
}Expand description
Parameters for cancelling an active turn.
Fields§
§session_id: StringOwning session.
turn_id: StringExact turn identity to cancel.
clear_queue: boolDiscard queued turns behind the cancelled one (running-switch flow: the terminal pump auto-dispatches the queue, so a deferred session switch can only land on an empty queue). Absent (legacy clients) means keep the queue: a plain stop lets queued prompts run afterwards (TUI parity).
Trait Implementations§
Source§impl Clone for TurnCancelParams
impl Clone for TurnCancelParams
Source§impl Debug for TurnCancelParams
impl Debug for TurnCancelParams
Source§impl<'de> Deserialize<'de> for TurnCancelParams
impl<'de> Deserialize<'de> for TurnCancelParams
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 Eq for TurnCancelParams
Source§impl PartialEq for TurnCancelParams
impl PartialEq for TurnCancelParams
Source§impl Serialize for TurnCancelParams
impl Serialize for TurnCancelParams
impl StructuralPartialEq for TurnCancelParams
Auto Trait Implementations§
impl Forget for TurnCancelParams
impl Freeze for TurnCancelParams
impl RefUnwindSafe for TurnCancelParams
impl Send for TurnCancelParams
impl Sync for TurnCancelParams
impl Unpin for TurnCancelParams
impl UnsafeUnpin for TurnCancelParams
impl UnwindSafe for TurnCancelParams
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.