Struct Artifact
Sourcepub struct Artifact {Show 14 fields
pub artifact_id: ArtifactId,
pub trajectory_id: TrajectoryId,
pub scope_id: ScopeId,
pub artifact_type: ArtifactType,
pub name: String,
pub content: String,
pub content_hash: ContentHash,
pub embedding: Option<EmbeddingVector>,
pub provenance: Provenance,
pub ttl: TTL,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
pub superseded_by: Option<ArtifactId>,
pub metadata: Option<Value>,
}Expand description
Artifact - typed output preserved across scopes. Artifacts survive scope closure and can be referenced later.
Fields§
§artifact_id: ArtifactId§trajectory_id: TrajectoryId§scope_id: ScopeId§artifact_type: ArtifactType§name: String§content: String§content_hash: ContentHash§embedding: Option<EmbeddingVector>§provenance: Provenance§ttl: TTL§created_at: DateTime<Utc>§updated_at: DateTime<Utc>§superseded_by: Option<ArtifactId>§metadata: Option<Value>Trait Implementations§
Source§impl<'de> Deserialize<'de> for Artifact
impl<'de> Deserialize<'de> for Artifact
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Artifact, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Artifact, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl EventSourced for Artifact
impl EventSourced for Artifact
Source§fn from_events(events: &[Event<Value>]) -> Option<Artifact>
fn from_events(events: &[Event<Value>]) -> Option<Artifact>
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 Serialize for Artifact
impl Serialize for Artifact
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
impl StructuralPartialEq for Artifact
Auto Trait Implementations§
impl Freeze for Artifact
impl RefUnwindSafe for Artifact
impl Send for Artifact
impl Sync for Artifact
impl Unpin for Artifact
impl UnwindSafe for Artifact
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