pub struct DelegationRecord {Show 16 fields
pub delegation_id: DelegationId,
pub tenant_id: TenantId,
pub from_agent_id: AgentId,
pub to_agent_id: AgentId,
pub trajectory_id: TrajectoryId,
pub scope_id: ScopeId,
pub task_description: String,
pub created_at: Timestamp,
pub accepted_at: Option<Timestamp>,
pub started_at: Option<Timestamp>,
pub completed_at: Option<Timestamp>,
pub expected_completion: Option<Timestamp>,
pub result: Option<DelegationResult>,
pub context: Option<Value>,
pub rejection_reason: Option<String>,
pub failure_reason: Option<String>,
}Expand description
Internal data storage for a delegation, independent of typestate. This is what gets persisted to the database.
Fields§
§delegation_id: DelegationId§tenant_id: TenantId§from_agent_id: AgentId§to_agent_id: AgentId§trajectory_id: TrajectoryId§scope_id: ScopeId§task_description: String§created_at: Timestamp§accepted_at: Option<Timestamp>§started_at: Option<Timestamp>§completed_at: Option<Timestamp>§expected_completion: Option<Timestamp>§result: Option<DelegationResult>§context: Option<Value>§rejection_reason: Option<String>Rejection reason (only set if rejected)
failure_reason: Option<String>Failure reason (only set if failed)
Trait Implementations§
Source§impl Clone for DelegationRecord
impl Clone for DelegationRecord
Source§fn clone(&self) -> DelegationRecord
fn clone(&self) -> DelegationRecord
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 DelegationRecord
impl ComposeSchema for DelegationRecord
Source§impl Debug for DelegationRecord
impl Debug for DelegationRecord
Source§impl<'de> Deserialize<'de> for DelegationRecord
impl<'de> Deserialize<'de> for DelegationRecord
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 DelegationRecord
impl PartialEq for DelegationRecord
Source§impl Serialize for DelegationRecord
impl Serialize for DelegationRecord
Source§impl ToSchema for DelegationRecord
impl ToSchema for DelegationRecord
impl StructuralPartialEq for DelegationRecord
Auto Trait Implementations§
impl Freeze for DelegationRecord
impl RefUnwindSafe for DelegationRecord
impl Send for DelegationRecord
impl Sync for DelegationRecord
impl Unpin for DelegationRecord
impl UnwindSafe for DelegationRecord
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