pub struct Entry {Show 14 fields
pub path: String,
pub role: String,
pub id: Option<String>,
pub type: Option<String>,
pub title: Option<String>,
pub summary: Option<String>,
pub order: Option<i64>,
pub media_type: Option<String>,
pub size: Option<i64>,
pub sha256: Option<String>,
pub count: Option<i64>,
pub schema: Option<String>,
pub optional: bool,
pub note: Option<String>,
}Expand description
[[entries]] 元素(本目录内容清单)。
Fields§
§path: String单段路径。
role: String角色。
id: Option<String>子分支 id(node / branch)。
type: Option<String>子分支类型。
title: Option<String>展示名。
summary: Option<String>摘要。
order: Option<i64>排序键。
media_type: Option<String>IANA 媒体类型。
size: Option<i64>字节数。
sha256: Option<String>内容指纹。
count: Option<i64>直接子项数(dir)。
schema: Option<String>该文件遵循的 Schema。
optional: bool是否允许缺失。
note: Option<String>备注。
Implementations§
Trait Implementations§
impl Eq for Entry
impl StructuralPartialEq for Entry
Auto Trait Implementations§
impl Freeze for Entry
impl RefUnwindSafe for Entry
impl Send for Entry
impl Sync for Entry
impl Unpin for Entry
impl UnsafeUnpin for Entry
impl UnwindSafe for Entry
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.