pub struct PackMeta {
pub name: String,
pub version: String,
pub author: Option<String>,
pub description: Option<String>,
pub dhive_version: Option<String>,
pub tags: Option<Vec<String>>,
pub memory_count: Option<u32>,
}Expand description
Pack 元数据
Fields§
§name: String包名 (kebab-case)
version: String语义化版本
作者标识
description: Option<String>1-3 句话描述
dhive_version: Option<String>创建此包的 D-HIVE 版本
包级别标签
memory_count: Option<u32>内含记忆条数 (导出工具自动填写)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PackMeta
impl<'de> Deserialize<'de> for PackMeta
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for PackMeta
impl RefUnwindSafe for PackMeta
impl Send for PackMeta
impl Sync for PackMeta
impl Unpin for PackMeta
impl UnsafeUnpin for PackMeta
impl UnwindSafe for PackMeta
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more