Skip to main content

ArtifactKind

Enum ArtifactKind 

Source
pub enum ArtifactKind {
    Image {
        width: Option<u32>,
        height: Option<u32>,
        format: Option<String>,
        frame_index: Option<u32>,
    },
    Video {
        width: Option<u32>,
        height: Option<u32>,
        fps: Option<f32>,
        duration_secs: Option<f32>,
        format: Option<String>,
        frame_count: Option<u32>,
    },
    Binary {
        mime_type: Option<String>,
        byte_size: Option<u64>,
    },
    Text {
        encoding: Option<String>,
        line_count: Option<u64>,
    },
    MemorySummary {
        entry_count: usize,
        entry_ids: Vec<String>,
    },
}
Expand description

Semantic kind of an artifact produced by a connector or agent.

Stored on Artifact as an optional field. When absent, the artifact is treated as a generic file. The ta draft view renderer uses this to pick the appropriate display format (e.g. suppress binary diffs for images).

§Extensibility

Future connectors can add new variants here (e.g. Audio, PointCloud). The Image and Video variants are intentionally generic — they are not tied to Unreal Engine or any other specific connector.

Variants§

§

Image

A raster image artifact (PNG, EXR, JPEG, …).

Fields are optional — connectors fill in what they know. Width and height are in pixels; frame_index is zero-based within a sequence.

Fields

§width: Option<u32>

Image width in pixels, if known.

§height: Option<u32>

Image height in pixels, if known.

§format: Option<String>

File format string, e.g. "PNG", "EXR", "JPEG".

§frame_index: Option<u32>

Zero-based frame index within a render sequence, if applicable.

§

Video

A video artifact (MP4, MOV, WebM, …) produced by render pipelines.

Text diff is suppressed — ta draft view shows a metadata summary like “Video: 1920×1080, 24fps, 6.2s, MP4” instead of binary content.

Fields

§width: Option<u32>

Frame width in pixels, if known.

§height: Option<u32>

Frame height in pixels, if known.

§fps: Option<f32>

Frames per second, if known.

§duration_secs: Option<f32>

Duration in seconds, if known.

§format: Option<String>

Container/format string, e.g. "MP4", "MOV", "WebM".

§frame_count: Option<u32>

Total frame count, if known.

§

Binary

An opaque binary artifact (compiled output, archive, model weights, …).

Text diff is suppressed — ta draft view shows a hex summary or (binary file, N bytes) instead.

Fields

§mime_type: Option<String>

MIME type string, e.g. "application/octet-stream", "application/zip".

§byte_size: Option<u64>

File size in bytes, if known.

§

Text

A raw text artifact (generated script, config file, data file, …).

Full unified diff is rendered in ta draft view.

Fields

§encoding: Option<String>

Character encoding, e.g. "utf-8", "latin-1". Defaults to UTF-8 if absent.

§line_count: Option<u64>

Number of lines in the file, if known.

§

MemorySummary

A memory summary artifact produced by an analysis/learning goal run (v0.15.13.2).

Produced when ta draft build detects an empty overlay diff but finds memory entries written by this goal run. The changeset holds a rendered summary of all entries (key, scope, value) for human review.

On approve: entries remain in the store — they were written during the run. On deny: entries are removed from the store using entry_ids.

Fields

§entry_count: usize

Number of memory entries created during this goal run.

§entry_ids: Vec<String>

Entry IDs (as strings) used by ta draft deny to remove them from the store.

These are the entry_id (UUID) values from each MemoryEntry.

Implementations§

Source§

impl ArtifactKind

Source

pub fn is_image(&self) -> bool

Returns true if this is an image kind (binary; diff should be suppressed).

Source

pub fn is_video(&self) -> bool

Returns true if this is a video kind (binary; diff should be suppressed).

Source

pub fn is_binary(&self) -> bool

Returns true if this is a binary kind (diff should be suppressed).

Source

pub fn is_text(&self) -> bool

Returns true if this is a text kind (full diff should be rendered).

Source

pub fn is_memory_summary(&self) -> bool

Returns true if this is a memory summary kind (no file diff; rendered as entry list).

Source

pub fn display_label(&self) -> String

Returns a short human-readable label for display (e.g. "MP4 video", "PNG image").

Source

pub fn video_metadata_summary(&self) -> String

Returns a compact metadata summary for display in ta draft view.

For Video: "Video: 1920×1080, 24fps, 6.2s, MP4" (omits unknown fields). For other kinds: returns an empty string.

Trait Implementations§

Source§

impl Clone for ArtifactKind

Source§

fn clone(&self) -> ArtifactKind

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ArtifactKind

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for ArtifactKind

Source§

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 ArtifactKind

Source§

fn eq(&self, other: &ArtifactKind) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for ArtifactKind

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for ArtifactKind

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,