pub enum CustomPropertyValue {
Text(String),
Bool(bool),
Int(i32),
Number(f64),
}Expand description
A single custom document property’s value — same 4 variants as
excel-ooxml::CustomPropertyValue/word_ooxml::CustomPropertyValue (CT_Property’s value
xsd:choice has several more — vectors, blobs, currency, a date variant — not modeled here,
same “simple case first” posture as those two sibling types).
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