pub struct WorkspaceEmbeddedPreviewMetadata {
pub mime_type: String,
pub byte_len: u64,
pub offset: Option<u64>,
pub content_hash: String,
}Expand description
Workspace workspace embedded preview metadata request or result value. Creating the value does not touch the filesystem; workspace executors document read, write, edit, or search effects.
Fields§
§mime_type: StringDetected or declared MIME type used for reader selection and provider-safe summaries.
byte_len: u64Observed byte length for the source, sidecar, or extracted record.
offset: Option<u64>Byte offset where this excerpt, prefix, or sample begins.
content_hash: StringStable hash for the bytes or canonical payload used for stale checks and fingerprints.
Trait Implementations§
Source§impl Clone for WorkspaceEmbeddedPreviewMetadata
impl Clone for WorkspaceEmbeddedPreviewMetadata
Source§fn clone(&self) -> WorkspaceEmbeddedPreviewMetadata
fn clone(&self) -> WorkspaceEmbeddedPreviewMetadata
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<'de> Deserialize<'de> for WorkspaceEmbeddedPreviewMetadata
impl<'de> Deserialize<'de> for WorkspaceEmbeddedPreviewMetadata
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 WorkspaceEmbeddedPreviewMetadata
Source§impl PartialEq for WorkspaceEmbeddedPreviewMetadata
impl PartialEq for WorkspaceEmbeddedPreviewMetadata
Source§fn eq(&self, other: &WorkspaceEmbeddedPreviewMetadata) -> bool
fn eq(&self, other: &WorkspaceEmbeddedPreviewMetadata) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for WorkspaceEmbeddedPreviewMetadata
Auto Trait Implementations§
impl Freeze for WorkspaceEmbeddedPreviewMetadata
impl RefUnwindSafe for WorkspaceEmbeddedPreviewMetadata
impl Send for WorkspaceEmbeddedPreviewMetadata
impl Sync for WorkspaceEmbeddedPreviewMetadata
impl Unpin for WorkspaceEmbeddedPreviewMetadata
impl UnsafeUnpin for WorkspaceEmbeddedPreviewMetadata
impl UnwindSafe for WorkspaceEmbeddedPreviewMetadata
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
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
Compare self to
key and return true if they are equal.