pub struct WorkspaceReadOutput {Show 17 fields
pub path: String,
pub mime_type: String,
pub detected: WorkspaceReadDetection,
pub reader_pipeline: Vec<WorkspaceReaderStep>,
pub byte_len: u64,
pub content_hash: String,
pub truncated: bool,
pub binary: bool,
pub anchors: Vec<HashLineAnchor>,
pub content: String,
pub content_summary: Option<String>,
pub media: Option<WorkspaceMediaMetadata>,
pub document: Option<WorkspaceDocumentMetadata>,
pub archive: Option<WorkspaceArchiveMetadata>,
pub sqlite: Option<WorkspaceSqliteMetadata>,
pub resource: Option<WorkspaceResourceMetadata>,
pub warnings: Vec<String>,
}Expand description
Workspace workspace read output request or result value. Creating the value does not touch the filesystem; workspace executors document read, write, edit, or search effects.
Fields§
§path: StringWorkspace-relative or resource path selected by the request or result.
mime_type: StringDetected or declared MIME type used for reader selection and provider-safe summaries.
detected: WorkspaceReadDetectionDetected used by this record or request.
reader_pipeline: Vec<WorkspaceReaderStep>Collection of reader pipeline values. Ordering and membership should be treated as part of the serialized contract when relevant.
byte_len: u64Observed byte length for the source, sidecar, or extracted record.
content_hash: StringStable hash for the bytes or canonical payload used for stale checks and fingerprints.
truncated: boolWhether output was shortened by byte, item, page, archive, or parser limits.
binary: boolWhether the input is treated as binary so raw bytes are not exposed by default.
anchors: Vec<HashLineAnchor>Hashline anchors and line metadata used for stale-read detection and edit planning.
content: StringBounded textual content extracted for caller use; absent for binary summaries or denied raw access.
content_summary: Option<String>Redacted or bounded summary used when raw content is absent or truncated.
media: Option<WorkspaceMediaMetadata>Media metadata extracted without exposing raw media bytes.
document: Option<WorkspaceDocumentMetadata>Document metadata such as parser, page/slide/sheet counts, and extraction warnings.
archive: Option<WorkspaceArchiveMetadata>Archive listing metadata with truncation and decompression warnings.
sqlite: Option<WorkspaceSqliteMetadata>SQLite schema/sample metadata gathered under bounded read limits.
resource: Option<WorkspaceResourceMetadata>Resource/URI metadata resolved through an explicit resolver.
warnings: Vec<String>Non-fatal warnings from bounded readers, parsers, or policy downgrades.
Trait Implementations§
Source§impl Clone for WorkspaceReadOutput
impl Clone for WorkspaceReadOutput
Source§fn clone(&self) -> WorkspaceReadOutput
fn clone(&self) -> WorkspaceReadOutput
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for WorkspaceReadOutput
impl Debug for WorkspaceReadOutput
Source§impl<'de> Deserialize<'de> for WorkspaceReadOutput
impl<'de> Deserialize<'de> for WorkspaceReadOutput
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>,
impl Eq for WorkspaceReadOutput
Source§impl PartialEq for WorkspaceReadOutput
impl PartialEq for WorkspaceReadOutput
Source§fn eq(&self, other: &WorkspaceReadOutput) -> bool
fn eq(&self, other: &WorkspaceReadOutput) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for WorkspaceReadOutput
impl Serialize for WorkspaceReadOutput
impl StructuralPartialEq for WorkspaceReadOutput
Auto Trait Implementations§
impl Freeze for WorkspaceReadOutput
impl RefUnwindSafe for WorkspaceReadOutput
impl Send for WorkspaceReadOutput
impl Sync for WorkspaceReadOutput
impl Unpin for WorkspaceReadOutput
impl UnsafeUnpin for WorkspaceReadOutput
impl UnwindSafe for WorkspaceReadOutput
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.