pub enum CustomPropertyValue {
Text(String),
Int(i32),
Float(f64),
Bool(bool),
DateTime(String),
}Expand description
自定义属性值类型(/docProps/custom.xml 中的 vt:* 元素)。
对应 OOXML VTypes 命名空间下的几种常用类型。
每个变体序列化为对应的 <vt:xxx> 元素。
§OOXML 结构
<property fmtid="{D5CDD505-2E9C-101B-9397-08002B2CF9AE}" pid="2" name="Key">
<vt:lpwstr>Value</vt:lpwstr>
</property>Variants§
Text(String)
字符串(<vt:lpwstr>)。
Int(i32)
32 位整数(<vt:i4>)。
Float(f64)
双精度浮点(<vt:r8>)。
Bool(bool)
布尔(<vt:bool>)。
DateTime(String)
日期时间(<vt:filetime>,ISO 8601 格式字符串)。
Trait Implementations§
Source§impl Clone for CustomPropertyValue
impl Clone for CustomPropertyValue
Source§fn clone(&self) -> CustomPropertyValue
fn clone(&self) -> CustomPropertyValue
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 CustomPropertyValue
impl Debug for CustomPropertyValue
Source§impl PartialEq for CustomPropertyValue
impl PartialEq for CustomPropertyValue
Source§fn eq(&self, other: &CustomPropertyValue) -> bool
fn eq(&self, other: &CustomPropertyValue) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CustomPropertyValue
Auto Trait Implementations§
impl Freeze for CustomPropertyValue
impl RefUnwindSafe for CustomPropertyValue
impl Send for CustomPropertyValue
impl Sync for CustomPropertyValue
impl Unpin for CustomPropertyValue
impl UnsafeUnpin for CustomPropertyValue
impl UnwindSafe for CustomPropertyValue
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