GoodMemGoodMem
ReferenceSdkRustTypes

RetrieveMemoryLogPolicyConditionClause

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

All types

Struct RetrieveMemoryLogPolicyConditionClause

goodmem::models::RetrieveMemoryLogPolicyConditionClause

One OR clause in a RetrieveMemory log policy condition. All populated dimensions in the clause must match; clauses are ORed together.

pub struct RetrieveMemoryLogPolicyConditionClause {
    pub requestor_user_ids: Option<Vec<String>>,
    pub api_key_ids: Option<Vec<String>>,
    pub space_ids: Option<Vec<String>>,
    pub api_key_label_selectors: Option<BTreeMap<String, String>>,
    pub space_label_selectors: Option<BTreeMap<String, String>>,
}

Fields

requestor_user_ids

pub requestor_user_ids: Option<Vec<String>>

Authenticated requestor user UUID strings. Wire name: requestorUserIds.

api_key_ids

pub api_key_ids: Option<Vec<String>>

API key UUID strings used to authenticate RetrieveMemory requests. Wire name: apiKeyIds.

space_ids

pub space_ids: Option<Vec<String>>

Post-permission accessible space UUID strings. Wire name: spaceIds.

api_key_label_selectors

pub api_key_label_selectors: Option<BTreeMap<String, String>>

Exact API-key label selectors that must all match. Wire name: apiKeyLabelSelectors.

space_label_selectors

pub space_label_selectors: Option<BTreeMap<String, String>>

Exact space label selectors that must match at least one accessible space. Wire name: spaceLabelSelectors.

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

On this page