pub struct DocMeta {
pub file_type: String,
pub page_count: usize,
pub text_length: usize,
pub image_count: usize,
pub image_text_length: usize,
pub extra: BTreeMap<String, String>,
}Fields§
§file_type: String§page_count: usize§text_length: usize§image_count: usize§image_text_length: usize§extra: BTreeMap<String, String>插件级附加信息:书籍元数据(书名/作者/语言/封面路径)、处理链告警等。
空时不进 JSON。与 Python 参考实现的 meta.extra 对齐。
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DocMeta
impl<'de> Deserialize<'de> for DocMeta
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
impl StructuralPartialEq for DocMeta
Auto Trait Implementations§
impl Freeze for DocMeta
impl RefUnwindSafe for DocMeta
impl Send for DocMeta
impl Sync for DocMeta
impl Unpin for DocMeta
impl UnsafeUnpin for DocMeta
impl UnwindSafe for DocMeta
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