pub struct RawPage {
pub name: Option<String>,
pub items: Vec<RawTextItem>,
pub images: Vec<RawImage>,
pub notes: Option<String>,
pub regions: Vec<RawRegion>,
pub comments: Vec<RawComment>,
pub width: Option<f32>,
pub height: Option<f32>,
pub rotation: Option<i32>,
pub tables: Vec<Vec<Vec<String>>>,
pub flat_text: Option<String>,
}Fields§
§name: Option<String>§items: Vec<RawTextItem>§images: Vec<RawImage>§notes: Option<String>附属文本(pptx 备注页等):不进块,只追加到页文本末尾
(对齐 Python page.meta["notes"] 的默认行为)
regions: Vec<RawRegion>区域内容(docx 页眉/页脚/脚注/尾注/批注):assemble 在 include_regions
打开时按 BlockKind::Note + meta["region"] = kind 产出,不进页文本
(对齐 Python DocxPlugin.assemble;kind = "comment" 是 Rust 侧新增,
批注作者/日期不进文本)。
comments: Vec<RawComment>单元格批注(xlsx):assemble 在 include_regions 打开时按
BlockKind::Note + meta["region"] = "comment" 产出,不进页文本
(对齐 Python XlsxPlugin.assemble)。
width: Option<f32>§height: Option<f32>§rotation: Option<i32>§tables: Vec<Vec<Vec<String>>>解析即已得到的表格结构 rows × cells
flat_text: Option<String>快路径页文本(structure_mode 非语义分支):Some 时该页不出块,
页文本直接取此值(对齐 Python blocks=[] + text="\n".join(texts))。
仅 regions/comments 仍随 include_regions 产 Note 块;notes 被忽略
(Python 非语义分支不看 meta["notes"])。
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RawPage
impl RefUnwindSafe for RawPage
impl Send for RawPage
impl Sync for RawPage
impl Unpin for RawPage
impl UnsafeUnpin for RawPage
impl UnwindSafe for RawPage
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