GoodMemGoodMem
ReferenceSdkRustTypes

GoodMemInstance

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

All types

Struct GoodMemInstance

goodmem::models::GoodMemInstance

The singleton GoodMem instance and its ownership audit metadata.

pub struct GoodMemInstance {
    pub instance_id: String,
    pub owner_id: String,
    pub created_at: i64,
    pub updated_at: i64,
    pub created_by_id: String,
    pub updated_by_id: String,
}

Fields

instance_id

pub instance_id: String

Durable UUID of the singleton GoodMem instance. Wire name: instanceId.

owner_id

pub owner_id: String

Current human owner principal UUID. Wire name: ownerId.

created_at

pub created_at: i64

Initialization timestamp in milliseconds since the Unix epoch. Wire name: createdAt.

updated_at

pub updated_at: i64

Most recent ownership-transfer timestamp in milliseconds since the Unix epoch. Wire name: updatedAt.

created_by_id

pub created_by_id: String

Principal or API-key actor UUID that initialized the instance. Wire name: createdById.

updated_by_id

pub updated_by_id: String

Principal or API-key actor UUID that last transferred ownership. 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 GoodMemInstance
  • impl std::fmt::Debug for GoodMemInstance

On this page