// 资产接口定义 use serde::{Deserialize, Serialize}; #[derive(Debug, Clone, Serialize, Deserialize)] pub struct AssetMetadata { pub name: String, pub symbol: String, pub description: String, } pub trait AssetInterface { fn get_metadata(&self) -> AssetMetadata; }