// Copyright 2022 the Gigamono authors. All rights reserved. GPL-3.0 License. use serde::{Deserialize, Serialize}; #[derive(Debug, Serialize, Deserialize, Default)] pub struct Imports { pub memories: Vec, pub tables: Vec, pub functions: Vec, pub globals: Vec, } #[derive(Debug, Serialize, Deserialize, Default)] pub struct Import { pub module: String, pub field: Option, pub index: u32, } impl Import { pub fn new(module: String, field: Option, index: u32) -> Self { Self { module, field, index, } } }