pub struct BackgroundSubagentArtifact {
pub artifact_ref: String,
pub namespace_id: String,
pub attempt_id: SubagentAttemptId,
pub content: String,
pub digest: String,
pub size_bytes: u64,
pub created_at: DateTime<Utc>,
pub expires_at: DateTime<Utc>,
}Expand description
Durable host-owned oversized result artifact.
Fields§
§artifact_ref: StringStable artifact reference stored in the terminal result record.
namespace_id: StringOwning durable namespace.
attempt_id: SubagentAttemptIdAttempt whose successful output was externalized.
content: StringComplete successful output bytes encoded as UTF-8 text.
digest: StringSHA-256 digest of the complete logical result.
size_bytes: u64Complete logical result size in bytes.
created_at: DateTime<Utc>Artifact creation timestamp.
expires_at: DateTime<Utc>Policy-controlled retention deadline.
Implementations§
Source§impl BackgroundSubagentArtifact
impl BackgroundSubagentArtifact
Sourcepub fn content_digest(content: &str) -> String
pub fn content_digest(content: &str) -> String
Compute the domain-separated digest used for successful result content.
Sourcepub fn is_valid(&self) -> bool
pub fn is_valid(&self) -> bool
Return whether the artifact matches its durable record identity and content.
Sourcepub fn is_available_at(&self, now: DateTime<Utc>) -> bool
pub fn is_available_at(&self, now: DateTime<Utc>) -> bool
Return whether the artifact is valid and still retained at now.
Trait Implementations§
Source§impl Clone for BackgroundSubagentArtifact
impl Clone for BackgroundSubagentArtifact
Source§fn clone(&self) -> BackgroundSubagentArtifact
fn clone(&self) -> BackgroundSubagentArtifact
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 BackgroundSubagentArtifact
impl Debug for BackgroundSubagentArtifact
Source§impl<'de> Deserialize<'de> for BackgroundSubagentArtifact
impl<'de> Deserialize<'de> for BackgroundSubagentArtifact
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
impl Eq for BackgroundSubagentArtifact
impl StructuralPartialEq for BackgroundSubagentArtifact
Source§impl VersionedRecord for BackgroundSubagentArtifact
impl VersionedRecord for BackgroundSubagentArtifact
Source§const SCHEMA: &'static str = "starweaver.session.background_subagent_artifact"
const SCHEMA: &'static str = "starweaver.session.background_subagent_artifact"
Stable schema identifier.
Source§const ALLOW_BARE_V0: bool = false
const ALLOW_BARE_V0: bool = false
Whether this record explicitly accepts a previous bare-JSON v0 shape.
Source§fn decode_version(
version: u32,
payload: Value,
) -> Result<Self, VersionedRecordError>where
Self: DeserializeOwned,
fn decode_version(
version: u32,
payload: Value,
) -> Result<Self, VersionedRecordError>where
Self: DeserializeOwned,
Decode one enveloped payload version. Read more
Source§fn decode_bare_v0(payload: Value) -> Result<Self, VersionedRecordError>where
Self: DeserializeOwned,
fn decode_bare_v0(payload: Value) -> Result<Self, VersionedRecordError>where
Self: DeserializeOwned,
Decode the explicitly supported bare-JSON v0 shape. Read more
Auto Trait Implementations§
impl Freeze for BackgroundSubagentArtifact
impl RefUnwindSafe for BackgroundSubagentArtifact
impl Send for BackgroundSubagentArtifact
impl Sync for BackgroundSubagentArtifact
impl Unpin for BackgroundSubagentArtifact
impl UnsafeUnpin for BackgroundSubagentArtifact
impl UnwindSafe for BackgroundSubagentArtifact
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