pub struct WorkRef {
pub conversation_id: ConversationId,
pub turn_id: TurnId,
}Expand description
Identity of one accepted work: the conversation plus the turn id the session assigned at acceptance.
The pair of existing ids only — no separate agent/work id is introduced.
An observe / wait for a ref that does not belong to the session is
SessionError::NotFound (it is never routed to another conversation).
Fields§
§conversation_id: ConversationIdThe conversation the work belongs to.
turn_id: TurnIdThe turn id assigned at acceptance; never reused by a later work.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for WorkRef
impl<'de> Deserialize<'de> for WorkRef
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 WorkRef
impl StructuralPartialEq for WorkRef
Auto Trait Implementations§
impl Freeze for WorkRef
impl RefUnwindSafe for WorkRef
impl Send for WorkRef
impl Sync for WorkRef
impl Unpin for WorkRef
impl UnsafeUnpin for WorkRef
impl UnwindSafe for WorkRef
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