pub struct InvocationDTO {
pub invocation_id: InvocationId,
pub task_id: TaskId,
pub call_id: CallId,
pub status: InvocationStatus,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
pub parent_invocation_id: Option<InvocationId>,
pub workflow: Option<WorkflowIdentity>,
}Expand description
Persistence DTO for an invocation.
Contains identity and metadata but not the call arguments themselves
(those are in CallDTO, separated for efficient storage).
Fields§
§invocation_id: InvocationId§task_id: TaskId§call_id: CallId§status: InvocationStatus§created_at: DateTime<Utc>§updated_at: DateTime<Utc>§parent_invocation_id: Option<InvocationId>The parent invocation that spawned this one (None for top-level calls).
workflow: Option<WorkflowIdentity>Workflow identity — present for invocations that belong to a workflow.
Implementations§
Source§impl InvocationDTO
impl InvocationDTO
pub fn new( invocation_id: InvocationId, task_id: TaskId, call_id: CallId, ) -> InvocationDTO
Sourcepub fn with_workflow(
invocation_id: InvocationId,
task_id: TaskId,
call_id: CallId,
parent_invocation_id: Option<InvocationId>,
workflow: WorkflowIdentity,
) -> InvocationDTO
pub fn with_workflow( invocation_id: InvocationId, task_id: TaskId, call_id: CallId, parent_invocation_id: Option<InvocationId>, workflow: WorkflowIdentity, ) -> InvocationDTO
Create a DTO with workflow identity and optional parent.
Trait Implementations§
Source§impl Clone for InvocationDTO
impl Clone for InvocationDTO
Source§fn clone(&self) -> InvocationDTO
fn clone(&self) -> InvocationDTO
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 InvocationDTO
impl Debug for InvocationDTO
Source§impl<'de> Deserialize<'de> for InvocationDTO
impl<'de> Deserialize<'de> for InvocationDTO
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<InvocationDTO, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<InvocationDTO, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for InvocationDTO
impl Serialize for InvocationDTO
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for InvocationDTO
impl RefUnwindSafe for InvocationDTO
impl Send for InvocationDTO
impl Sync for InvocationDTO
impl Unpin for InvocationDTO
impl UnsafeUnpin for InvocationDTO
impl UnwindSafe for InvocationDTO
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