pub 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: Timestamp,
pub updated_at: Timestamp,
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: Timestamp§updated_at: Timestamp§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<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 EventSourced for Artifact
impl EventSourced for Artifact
Source§fn from_events(events: &[Event<Value>]) -> Option<Self>
fn from_events(events: &[Event<Value>]) -> Option<Self>
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.
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