GoodMemGoodMem
ReferenceSdkRustTypes

RetrievedItem

Rust struct goodmem::models::RetrievedItem: declaration, fields or variants, and implementations.

All types

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 RetrievedItem
  • impl std::fmt::Debug for RetrievedItem

On this page