Struct Trajectory
Sourcepub struct Trajectory {
pub trajectory_id: TrajectoryId,
pub name: String,
pub description: Option<String>,
pub status: TrajectoryStatus,
pub parent_trajectory_id: Option<TrajectoryId>,
pub root_trajectory_id: Option<TrajectoryId>,
pub agent_id: Option<AgentId>,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
pub completed_at: Option<DateTime<Utc>>,
pub outcome: Option<TrajectoryOutcome>,
pub metadata: Option<Value>,
}Expand description
Trajectory - top-level task container. A trajectory represents a complete task or goal being pursued.
Fields§
§trajectory_id: TrajectoryId§name: String§description: Option<String>§status: TrajectoryStatus§parent_trajectory_id: Option<TrajectoryId>§root_trajectory_id: Option<TrajectoryId>§agent_id: Option<AgentId>§created_at: DateTime<Utc>§updated_at: DateTime<Utc>§completed_at: Option<DateTime<Utc>>§outcome: Option<TrajectoryOutcome>§metadata: Option<Value>Trait Implementations§
Source§impl Clone for Trajectory
impl Clone for Trajectory
Source§fn clone(&self) -> Trajectory
fn clone(&self) -> Trajectory
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 Trajectory
impl Debug for Trajectory
Source§impl<'de> Deserialize<'de> for Trajectory
impl<'de> Deserialize<'de> for Trajectory
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Trajectory, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Trajectory, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl EventSourced for Trajectory
impl EventSourced for Trajectory
Source§fn from_events(events: &[Event<Value>]) -> Option<Trajectory>
fn from_events(events: &[Event<Value>]) -> Option<Trajectory>
Reconstruct entity state from a sequence of events. Read more
Source§fn apply_event(&mut self, event: &Event<Value>)
fn apply_event(&mut self, event: &Event<Value>)
Apply a single event to update state (used for incremental updates).
Source§fn relevant_event_kinds() -> &'static [EventKind]
fn relevant_event_kinds() -> &'static [EventKind]
The event kinds this entity cares about.
Source§impl PartialEq for Trajectory
impl PartialEq for Trajectory
Source§impl Serialize for Trajectory
impl Serialize for Trajectory
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
Source§impl ToSchema for Trajectory
impl ToSchema for Trajectory
impl StructuralPartialEq for Trajectory
Auto Trait Implementations§
impl Freeze for Trajectory
impl RefUnwindSafe for Trajectory
impl Send for Trajectory
impl Sync for Trajectory
impl Unpin for Trajectory
impl UnwindSafe for Trajectory
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