pub struct DocumentMeta {
pub title: Option<String>,
pub author: Option<String>,
pub subject: Option<String>,
pub keywords: Option<String>,
pub page_width: Option<u32>,
pub page_height: Option<u32>,
pub landscape: bool,
}Expand description
DOCX 文件的文档级元数据。
对应 OOXML docProps/core.xml 中的 Dublin Core 元数据。
无直接 Java 对应(Java EasyExcel 的 ReadSheet/WriteSheet 仅描述表格级元数据)。
Fields§
§title: Option<String>Document title (maps to dc:title).
Author name (maps to dc:creator).
subject: Option<String>Subject / description (maps to dc:description).
keywords: Option<String>Keywords, comma or semicolon separated (maps to cp:keywords).
page_width: Option<u32>Page width in twips (default: A4 portrait = 11906).
page_height: Option<u32>Page height in twips (default: A4 portrait = 16838).
landscape: boolPage orientation: true = landscape.
Implementations§
Source§impl DocumentMeta
impl DocumentMeta
设置作者名称。
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 (const: unstable) · 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
impl Eq for DocumentMeta
Source§impl PartialEq for DocumentMeta
impl PartialEq for DocumentMeta
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
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§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.