Memory
Rust struct goodmem::models::Memory: declaration, fields or variants, and implementations.
Struct Memory
goodmem::models::Memory
Memory object containing stored content and metadata
pub struct Memory {
pub memory_id: String,
pub space_id: String,
pub original_content: Option<String>,
pub original_content_length: Option<i64>,
pub original_content_sha256: Option<String>,
pub original_content_ref: Option<String>,
pub content_type: String,
pub processing_status: MemoryProcessingStatus,
pub page_image_status: MemoryPageImageStatus,
pub page_image_count: i32,
pub metadata: Option<BTreeMap<String, serde_json::Value>>,
pub created_at: i64,
pub updated_at: i64,
pub created_by_id: String,
pub updated_by_id: String,
pub chunking_config: Option<Box<ChunkingConfiguration>>,
pub processing_history: Option<Box<ProcessingHistory>>,
}Referenced types: ChunkingConfiguration, MemoryPageImageStatus, MemoryProcessingStatus, ProcessingHistory.
Fields
memory_id
pub memory_id: String
Unique identifier of the memory
Wire name: memoryId.
space_id
pub space_id: String
ID of the space containing this memory
Wire name: spaceId.
original_content
pub original_content: Option<String>
Original content (only included if requested)
Wire name: originalContent.
original_content_length
pub original_content_length: Option<i64>
Size in bytes of the inline original content
Wire name: originalContentLength.
original_content_sha256
pub original_content_sha256: Option<String>
SHA-256 digest of the inline original content, hex encoded
Wire name: originalContentSha256.
original_content_ref
pub original_content_ref: Option<String>
Reference to external content location
Wire name: originalContentRef.
content_type
pub content_type: String
MIME type of the content
Wire name: contentType.
processing_status
pub processing_status: MemoryProcessingStatus
Processing status of the memory
Wire name: processingStatus.
page_image_status
pub page_image_status: MemoryPageImageStatus
Processing status of page-image extraction for this memory
Wire name: pageImageStatus.
page_image_count
pub page_image_count: i32
Number of extracted page-image renditions linked to this memory
Wire name: pageImageCount.
metadata
pub metadata: Option<BTreeMap<String, serde_json::Value>>
Additional metadata for the memory. A top-level textual title may have been used as a document-title hint when its chunks were embedded; changing it does not automatically re-embed existing chunks.
Wire name: metadata.
created_at
pub created_at: i64
Timestamp when the memory was created (milliseconds since epoch)
Wire name: createdAt.
updated_at
pub updated_at: i64
Timestamp when the memory was last updated (milliseconds since epoch)
Wire name: updatedAt.
created_by_id
pub created_by_id: String
Exact principal or API-key audit actor that created this memory
Wire name: createdById.
updated_by_id
pub updated_by_id: String
Exact principal or API-key audit actor that last updated this memory
Wire name: updatedById.
chunking_config
pub chunking_config: Option<Box<ChunkingConfiguration>>
Chunking strategy used for this memory
Wire name: chunkingConfig.
processing_history
pub processing_history: Option<Box<ProcessingHistory>>
Background job processing history associated with this memory
Wire name: processingHistory.
Implementations
validate
pub fn validate(&self) -> crate::Result<()>
Validate the request before sending, without making an HTTP call.
Trait implementations
Clone(derived)Default(derived)PartialEq(derived)Serialize(derived)impl<'de> Deserialize<'de> for Memoryimpl std::fmt::Debug for Memory