pub struct DocumentMeta {
pub path: String,
pub title: Option<String>,
pub lang: Option<String>,
pub last_updated: Option<i64>,
pub extra: HashMap<String, NargoValue>,
}Expand description
文档元信息
Fields§
§path: String文档路径
title: Option<String>文档标题
lang: Option<String>文档语言
last_updated: Option<i64>最后更新时间
extra: HashMap<String, NargoValue>其他元数据
Trait Implementations§
Source§impl Clone for DocumentMeta
impl Clone for DocumentMeta
Source§fn clone(&self) -> DocumentMeta
fn clone(&self) -> DocumentMeta
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DocumentMeta
impl Debug for DocumentMeta
Source§impl Default for DocumentMeta
impl Default for DocumentMeta
Source§fn default() -> DocumentMeta
fn default() -> DocumentMeta
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DocumentMeta
impl<'de> Deserialize<'de> for DocumentMeta
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<DocumentMeta, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<DocumentMeta, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for DocumentMeta
impl PartialEq for DocumentMeta
Source§impl Serialize for DocumentMeta
impl Serialize for DocumentMeta
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for DocumentMeta
Auto Trait Implementations§
impl Freeze for DocumentMeta
impl RefUnwindSafe for DocumentMeta
impl Send for DocumentMeta
impl Sync for DocumentMeta
impl Unpin for DocumentMeta
impl UnsafeUnpin for DocumentMeta
impl UnwindSafe for DocumentMeta
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