Skip to main content

canic_core/dto/
memory.rs

1use crate::dto::prelude::*;
2
3//
4// MemoryRegistryResponse
5//
6
7#[derive(CandidType, Clone, Debug, Deserialize)]
8pub struct MemoryRegistryResponse {
9    pub entries: Vec<MemoryRegistryEntry>,
10}
11
12//
13// MemoryRegistryEntry
14//
15
16#[derive(CandidType, Clone, Debug, Deserialize)]
17pub struct MemoryRegistryEntry {
18    pub id: u8,
19    pub crate_name: String,
20    pub label: String,
21}