GoodMemGoodMem
ReferenceSdkRustTypes

MemoryPageImage

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

All types

Struct MemoryPageImage

goodmem::models::MemoryPageImage

Metadata for one memory page-image rendition

pub struct MemoryPageImage {
    pub memory_id: String,
    pub page_index: i32,
    pub dpi: i32,
    pub content_type: String,
    pub image_content_length: Option<i64>,
    pub image_content_sha256: Option<String>,
    pub created_at: i64,
    pub updated_at: i64,
    pub created_by_id: String,
    pub updated_by_id: String,
}

Fields

memory_id

pub memory_id: String

Memory UUID Wire name: memoryId.

page_index

pub page_index: i32

0-based page index Wire name: pageIndex.

dpi

pub dpi: i32

Render DPI Wire name: dpi.

content_type

pub content_type: String

Image MIME type Wire name: contentType.

image_content_length

pub image_content_length: Option<i64>

Image byte length Wire name: imageContentLength.

image_content_sha256

pub image_content_sha256: Option<String>

Hex-encoded SHA-256 digest of image content Wire name: imageContentSha256.

created_at

pub created_at: i64

Creation timestamp (milliseconds since epoch) Wire name: createdAt.

updated_at

pub updated_at: i64

Last update timestamp (milliseconds since epoch) Wire name: updatedAt.

created_by_id

pub created_by_id: String

Exact principal or API-key audit actor that created this rendition Wire name: createdById.

updated_by_id

pub updated_by_id: String

Exact principal or API-key audit actor that last updated this rendition 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 MemoryPageImage
  • impl std::fmt::Debug for MemoryPageImage

On this page