pub enum CustomPropertyValue {
Text(String),
Bool(bool),
Int(i32),
Number(f64),
}Expand description
A single custom document property’s value (docProps/custom.xml, CT_Property’s value
xsd:choice — this crate models the same 4 of its many variant types as word-ooxml’s own
CustomPropertyValue: vt:lpwstr (Text), vt:bool (Bool), vt:i4 (Int), vt:r8
(Number)). CT_Property also allows a date variant (vt:filetime) and several others
(vectors, blobs, currency..) not modeled here — same “simple case first, mirror the sibling
crate’s own scope decision” posture as word-ooxml’s own doc comment for this exact type
explains.
Variants§
Text(String)
A text value (vt:lpwstr).
Bool(bool)
A boolean value (vt:bool).
Int(i32)
A 32-bit signed integer value (vt:i4).
Number(f64)
A 64-bit floating-point value (vt:r8).
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
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