pub struct ParentLink {
pub parent_id: String,
pub parent_type: ParentType,
}Expand description
ParentLink - Traces causal origin of an execution
Every execution has a parent link that describes what triggered it.
Fields§
§parent_id: StringThe ID of the triggering entity
parent_type: ParentTypeWhat kind of entity triggered this
Implementations§
Source§impl ParentLink
impl ParentLink
Sourcepub fn new(parent_id: impl Into<String>, parent_type: ParentType) -> Self
pub fn new(parent_id: impl Into<String>, parent_type: ParentType) -> Self
Create a new ParentLink
Sourcepub fn from_user_message(message_id: impl Into<String>) -> Self
pub fn from_user_message(message_id: impl Into<String>) -> Self
Create a ParentLink for a user message trigger
Sourcepub fn from_step(step_id: &StepId) -> Self
pub fn from_step(step_id: &StepId) -> Self
Create a ParentLink for a step execution (sub-agent) trigger
Sourcepub fn execution(execution_id: ExecutionId) -> Self
pub fn execution(execution_id: ExecutionId) -> Self
Create a ParentLink for a parent execution (nested execution)
Trait Implementations§
Source§impl Clone for ParentLink
impl Clone for ParentLink
Source§fn clone(&self) -> ParentLink
fn clone(&self) -> ParentLink
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 ParentLink
impl Debug for ParentLink
Source§impl<'de> Deserialize<'de> for ParentLink
impl<'de> Deserialize<'de> for ParentLink
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 ParentLink
impl PartialEq for ParentLink
Source§impl Serialize for ParentLink
impl Serialize for ParentLink
impl Eq for ParentLink
impl StructuralPartialEq for ParentLink
Auto Trait Implementations§
impl Freeze for ParentLink
impl RefUnwindSafe for ParentLink
impl Send for ParentLink
impl Sync for ParentLink
impl Unpin for ParentLink
impl UnsafeUnpin for ParentLink
impl UnwindSafe for ParentLink
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.