GoodMemGoodMem
ReferenceSdkRustTypes

BatchMemoryResult

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

All types

Struct BatchMemoryResult

goodmem::models::BatchMemoryResult

Individual item result for a batch memories operation

pub struct BatchMemoryResult {
    pub success: bool,
    pub memory_id: Option<String>,
    pub memory: Option<Box<Memory>>,
    pub error: Option<Box<ErrorDetail>>,
    pub request_index: Option<i64>,
    pub deleted_count: Option<i64>,
}

Referenced types: ErrorDetail, Memory.

Fields

success

pub success: bool

Whether this individual operation succeeded Wire name: success.

memory_id

pub memory_id: Option<String>

Memory ID associated with this result (present for batchGet errors and batchDelete results) Wire name: memoryId.

memory

pub memory: Option<Box<Memory>>

Created or retrieved memory (present when the operation returns a memory on success) Wire name: memory.

error

pub error: Option<Box<ErrorDetail>>

Error details when success is false Wire name: error.

request_index

pub request_index: Option<i64>

0-based index into the original batch request selectors Wire name: requestIndex.

deleted_count

pub deleted_count: Option<i64>

Number of rows deleted by this selector Wire name: deletedCount.

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

On this page