GoodMemGoodMem
ReferenceSdkRustTypes

RetrieveMemoryLogPolicy

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

All types

Struct RetrieveMemoryLogPolicy

goodmem::models::RetrieveMemoryLogPolicy

REST representation of an immutable RetrieveMemory log policy.

pub struct RetrieveMemoryLogPolicy {
    pub policy_id: String,
    pub display_name: String,
    pub description: Option<String>,
    pub condition: Box<RetrieveMemoryLogPolicyCondition>,
    pub active_from: i64,
    pub active_until: Option<i64>,
    pub labels: BTreeMap<String, String>,
    pub currently_active: bool,
    pub deleted_at: Option<i64>,
    pub deleted_by_id: Option<String>,
    pub delete_reason: Option<String>,
    pub created_at: i64,
    pub updated_at: i64,
    pub created_by_id: String,
    pub updated_by_id: String,
}

Referenced types: RetrieveMemoryLogPolicyCondition.

Fields

policy_id

pub policy_id: String

Policy UUID. Wire name: policyId.

display_name

pub display_name: String

Human-readable policy name. Wire name: displayName.

description

pub description: Option<String>

Optional operator description. Wire name: description.

condition

pub condition: Box<RetrieveMemoryLogPolicyCondition>

Policy match condition. Wire name: condition.

active_from

pub active_from: i64

Inclusive activation time in milliseconds since epoch. Wire name: activeFrom.

active_until

pub active_until: Option<i64>

Exclusive deactivation time in milliseconds since epoch. Wire name: activeUntil.

labels

pub labels: BTreeMap<String, String>

Operator labels for listing and administration. Wire name: labels.

currently_active

pub currently_active: bool

Whether the policy is active at response evaluation time. Wire name: currentlyActive.

deleted_at

pub deleted_at: Option<i64>

Tombstone time in milliseconds since epoch. Wire name: deletedAt.

deleted_by_id

pub deleted_by_id: Option<String>

User UUID that tombstoned the policy. Wire name: deletedById.

delete_reason

pub delete_reason: Option<String>

Optional tombstone reason. Wire name: deleteReason.

created_at

pub created_at: i64

Creation time in milliseconds since epoch. Wire name: createdAt.

updated_at

pub updated_at: i64

Update time in milliseconds since epoch. Wire name: updatedAt.

created_by_id

pub created_by_id: String

Creator user UUID. Wire name: createdById.

updated_by_id

pub updated_by_id: String

Last-updater user UUID. Wire name: updatedById.

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

On this page