pub struct MultimodalArtifact {
pub sha256: String,
pub kind: ArtifactKind,
pub mime: String,
pub size_bytes: u64,
pub ocr_text: Option<String>,
pub page_count: Option<u32>,
pub created_at: DateTime<Utc>,
pub decoder_version: String,
pub ocr_engine_version: Option<String>,
}Expand description
In-memory record of one dropped/pasted artifact.
Consumed by:
- the GUI composer (thumbnails + remove control)
mur-agent-runtime’sB0SafetyHook(untrusted wrapper injection, side-effect-tool deny via theafter_untrusted_inputturn-flag).
decoder_version and ocr_engine_version are persisted in
telemetry/inputs.jsonl so a future audit can reproduce the exact
decode chain.
Fields§
§sha256: StringContent hash of the re-encoded (sanitized) bytes.
kind: ArtifactKind§mime: String§size_bytes: u64§ocr_text: Option<String>OCR’d text for images, extracted text for PDFs. None for text/*
(the body itself is the text).
page_count: Option<u32>Page count for PDFs. None for images.
created_at: DateTime<Utc>§decoder_version: String§ocr_engine_version: Option<String>Trait Implementations§
Source§impl Clone for MultimodalArtifact
impl Clone for MultimodalArtifact
Source§fn clone(&self) -> MultimodalArtifact
fn clone(&self) -> MultimodalArtifact
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 MultimodalArtifact
impl Debug for MultimodalArtifact
Source§impl<'de> Deserialize<'de> for MultimodalArtifact
impl<'de> Deserialize<'de> for MultimodalArtifact
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
Auto Trait Implementations§
impl Freeze for MultimodalArtifact
impl RefUnwindSafe for MultimodalArtifact
impl Send for MultimodalArtifact
impl Sync for MultimodalArtifact
impl Unpin for MultimodalArtifact
impl UnsafeUnpin for MultimodalArtifact
impl UnwindSafe for MultimodalArtifact
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