pub struct Document {
pub common_data: CommonData,
pub pages: Pages,
pub outlines: Option<Outlines>,
pub permissions: Option<CtPermission>,
pub actions: Option<Actions>,
pub v_preferences: Option<VPreferences>,
pub bookmarks: Option<Bookmarks>,
pub attachments: Option<StLoc>,
pub annotations: Option<StLoc>,
pub custom_tags: Option<StLoc>,
pub extensions: Option<StLoc>,
}Expand description
文档根节点(见表 5)。
Fields§
§common_data: CommonData文档公共数据,定义页面区域、公共资源等(必选)。
pages: Pages页树,见 7.6(必选)。
outlines: Option<Outlines>大纲,见 7.8(可选)。
permissions: Option<CtPermission>文档权限声明(可选)。
actions: Option<Actions>文档关联的动作序列(可选)。
v_preferences: Option<VPreferences>文档视图首选项(可选)。
bookmarks: Option<Bookmarks>文档书签集(可选)。
attachments: Option<StLoc>指向附件列表文件,见第 20 章(可选)。
annotations: Option<StLoc>指向注释列表文件,见第 15 章(可选)。
指向自定义标引列表文件,见第 16 章(可选)。
extensions: Option<StLoc>指向扩展列表文件,见第 17 章(可选)。
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Document
impl<'de> Deserialize<'de> for Document
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 Document
impl RefUnwindSafe for Document
impl Send for Document
impl Sync for Document
impl Unpin for Document
impl UnsafeUnpin for Document
impl UnwindSafe for Document
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