pub struct ChunkManifestEntry {
pub external_chunk_id: String,
pub content: String,
pub token_count_estimate: Option<usize>,
pub content_digest: Option<String>,
pub metadata: Option<Value>,
}Expand description
Caller-supplied chunk for manifest ingestion.
The external chunk ID is returned in the ingest mapping, but semantic-memory still
owns the durable chunk primary key and generates its own sm_chunk_id.
Fields§
§external_chunk_id: StringCaller-owned chunk identifier.
content: StringAlready chunked content to embed and store.
token_count_estimate: Option<usize>Optional caller-estimated token count.
content_digest: Option<String>Optional caller-computed content digest for verification by adapters.
metadata: Option<Value>Optional per-chunk metadata kept in the receipt mapping.
Trait Implementations§
Source§impl Clone for ChunkManifestEntry
impl Clone for ChunkManifestEntry
Source§fn clone(&self) -> ChunkManifestEntry
fn clone(&self) -> ChunkManifestEntry
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 ChunkManifestEntry
impl Debug for ChunkManifestEntry
Source§impl<'de> Deserialize<'de> for ChunkManifestEntry
impl<'de> Deserialize<'de> for ChunkManifestEntry
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 ChunkManifestEntry
impl RefUnwindSafe for ChunkManifestEntry
impl Send for ChunkManifestEntry
impl Sync for ChunkManifestEntry
impl Unpin for ChunkManifestEntry
impl UnsafeUnpin for ChunkManifestEntry
impl UnwindSafe for ChunkManifestEntry
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