1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
//! 镜像描述模块 //! //! 该模块定义了 `RegistryDescription` 结构体 /// 镜像描述 #[derive(Debug)] pub struct RegistryDescription { /// 镜像地址 pub registry: String, /// 镜像 `dl` pub dl: String, } impl RegistryDescription { /// 创建一个镜像描述对象 pub fn new(registry: String, dl: String) -> Self { RegistryDescription { registry, dl } } }