ReferenceSdkRustTypes
RetrievedItem
Rust struct goodmem::models::RetrievedItem: declaration, fields or variants, and implementations.
Struct RetrievedItem
goodmem::models::RetrievedItem
A retrieved result that can be either a Memory or MemoryChunk
pub struct RetrievedItem {
pub memory: Option<Box<Memory>>,
pub chunk: Option<Box<ChunkReference>>,
}Referenced types: ChunkReference, Memory.
Fields
memory
pub memory: Option<Box<Memory>>
Complete memory object (if retrieved)
Wire name: memory.
chunk
pub chunk: Option<Box<ChunkReference>>
Reference to a memory chunk (if retrieved)
Wire name: chunk.
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 RetrievedItemimpl std::fmt::Debug for RetrievedItem