pub struct HandoffRecord {
pub handoff_id: HandoffId,
pub tenant_id: TenantId,
pub from_agent_id: AgentId,
pub to_agent_id: AgentId,
pub trajectory_id: TrajectoryId,
pub scope_id: ScopeId,
pub reason: String,
pub context_snapshot: Vec<u8>,
pub created_at: Timestamp,
pub accepted_at: Option<Timestamp>,
pub completed_at: Option<Timestamp>,
pub rejection_reason: Option<String>,
}Expand description
Internal data storage for a handoff, independent of typestate. This is what gets persisted to the database.
Fields§
§handoff_id: HandoffId§tenant_id: TenantId§from_agent_id: AgentId§to_agent_id: AgentId§trajectory_id: TrajectoryId§scope_id: ScopeId§reason: String§context_snapshot: Vec<u8>§created_at: Timestamp§accepted_at: Option<Timestamp>§completed_at: Option<Timestamp>§rejection_reason: Option<String>Rejection reason (only set if rejected)
Trait Implementations§
Source§impl Clone for HandoffRecord
impl Clone for HandoffRecord
Source§fn clone(&self) -> HandoffRecord
fn clone(&self) -> HandoffRecord
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 ComposeSchema for HandoffRecord
impl ComposeSchema for HandoffRecord
Source§impl Debug for HandoffRecord
impl Debug for HandoffRecord
Source§impl<'de> Deserialize<'de> for HandoffRecord
impl<'de> Deserialize<'de> for HandoffRecord
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 HandoffRecord
impl PartialEq for HandoffRecord
Source§impl Serialize for HandoffRecord
impl Serialize for HandoffRecord
Source§impl ToSchema for HandoffRecord
impl ToSchema for HandoffRecord
impl StructuralPartialEq for HandoffRecord
Auto Trait Implementations§
impl Freeze for HandoffRecord
impl RefUnwindSafe for HandoffRecord
impl Send for HandoffRecord
impl Sync for HandoffRecord
impl Unpin for HandoffRecord
impl UnwindSafe for HandoffRecord
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